-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A problem occurred evaluating settings 'android' #799
Comments
@RebinX1 Could you try removing |
@evil159 i removed the credential and i got this error: `FAILURE: Build failed with an exception.
BUILD FAILED in 390ms` This how my settings.gradle looks like now: ` pluginManagement {
} plugins { include ":app" ` |
@RebinX1, sorry forgot to mention, |
@evil159 i have tried removing the authentication my setting.gradle looks like this, but i still get the same error, i have alsi removed the full maven{..} for the mapbox implementation and the error remains. `
} plugins { include ":app" ` Error: `
its worth to mention when i remove the full maven{..} i get this error: `
` |
@RebinX1 I see, could you try downgrading AGP( |
@evil159 i tried this, i had to downgrade my java version from (20 to 17), i tried to run my app and the issue remains, i have restored my flutter app and i have pushed it to github available at this link "https://github.com/RebinX1/Cee-Flutter", i would appreciate if you can look at it. |
I am trying to install and build a basic mapbox flutter app, the app runs well on IOS and i have no issue as i have followed the docs, but when i try to run the same app on android i get this error:
`flutter run
Launching lib/main.dart on Pixel 6 in debug mode...
FAILURE: Build failed with an exception.
Where:
Settings file '/Users/rebin/Documents/OrbitalPoint.Co/Company Project/Cee/Apps/Cee-Flutter/cee_radar_and_navigation/android/settings.gradle' line: 25
What went wrong:
A problem occurred evaluating settings 'android'.
BUILD FAILED in 395ms
Running Gradle task 'assembleDebug'... 935ms
Error: Gradle task assembleDebug failed with exit code 1`
i have followed the documentation and i have checked other people who had a somehow of a similar issue but none fixed the android issue i have right now.
i am using flutter "2.4.1", on android these are the setup that i currently have:
android/app/main/res/values/mapbox_access_token:
`
pk.eyJ1Ij...... `android/app/build.gradle:
`
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
namespace = "com.orbitalpoint.cee_radar_and_navigation"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
}
flutter {
source = "../.."
}
`
android/gradle.properties:
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true MAPBOX_DOWNLOADS_TOKEN=sk.ey...
android/settings.gradle:
`pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
include ":app"
`
On IOS i have no issue and the app works and it display the mapbox map widget, but on android the app does not run at all, am i missing something or have i messed up the implementation?
i am using the latest version of flutter and mapbox library.
The text was updated successfully, but these errors were encountered: