Closed M1sterchamp closed 2 weeks ago
Hmm, Im not entire sure what the problem is but it seems like
im not sure how updating my kotlin version would help, since im already using the version that the FlutterRadioPlayer is explicitly asking for. As for the build.gradle update, my build.gradle files are all accurate to the best of my knowledge, but i shall share them below too.
android/app/build.gradle.kts
`plugins { id("com.android.application") id("kotlin-android") id("dev.flutter.flutter-gradle-plugin") }
android {
namespace = "com.example.peanfm_mobile"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"
defaultConfig {
applicationId = "com.example.peanfm_mobile"
minSdk = 31
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
signingConfigs {
create("release") {
storeFile = file(System.getenv("UPLOAD_KEYSTORE_PATH") ?: "../upload-keystore.jks")
storePassword = System.getenv("UPLOAD_STORE_PASSWORD") ?: "testbuild"
keyAlias = System.getenv("UPLOAD_KEY_ALIAS") ?: "upload"
keyPassword = System.getenv("UPLOAD_KEY_PASSWORD") ?: "testbuild"
}
}
buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
}
flutter { source = "../.." } `
android/build.gradle.kts
`plugins { id("com.android.application") id("kotlin-android") id("dev.flutter.flutter-gradle-plugin") }
android {
namespace = "com.example.peanfm_mobile"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"
defaultConfig {
applicationId = "com.example.peanfm_mobile"
minSdk = 31
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
signingConfigs {
create("release") {
storeFile = file(System.getenv("UPLOAD_KEYSTORE_PATH") ?: "../upload-keystore.jks")
storePassword = System.getenv("UPLOAD_STORE_PASSWORD") ?: "testbuild"
keyAlias = System.getenv("UPLOAD_KEY_ALIAS") ?: "upload"
keyPassword = System.getenv("UPLOAD_KEY_PASSWORD") ?: "testbuild"
}
}
buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
}
flutter { source = "../.." } `
as you can see i also tried explicitly adding https://storage.googleapis.com/download.flutter.io but i still get exactly the same error.
Closing due to no activity
Im having an issue building the APK.
Flutter version: 3.29.3 Kotlin version: 1.8.22 AGP version: 8.7.0 FlutterRadioPlayer version: 3.0.2
FAILURE: Build failed with an exception.
https://storage.googleapis.com/download.flutter.io/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom - this one works
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom - returns error 404 not found page
https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-serialization-compiler-plugin-embeddable/1.8.22/kotlin-serialization-compiler-plugin-embeddable-1.8.22.pom - returns google 404 thats an error page