Closed joshuadeguzman closed 2 months ago
We are able to build using superwall_flutter: 1.1.8
:
[+1232 ms] ✓ Built build/app/outputs/flutter-apk/app-dev-release.apk (135.5MB).
[ ] "flutter apk" took 141,327ms.
[ +162 ms] ensureAnalyticsSent: 114ms
[ ] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ +1 ms] exiting with code 0
Hey @joshuadeguzman ! Thanks for the suggestion, added it to docs and will be live soon!
Regarding not being able to update due to image_gallery_saver
and facebook_app_events
, you can try something similar to the following in your build.gradle
:
subprojects {
...
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
compileSdk = 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
if (project.plugins.hasPlugin("kotlin-android"))
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.jvmTarget = "17"
}
}
}
}
}
While not a perfect solution, it could help until the library owners update their respective targets.
Resolving the issue as new docs are live!
Thank you @ianrumac !! I saw the doc changes, it's pretty neat! I hope this will help more developers who will integrate Superwall!
https://superwall.com/docs/installation-via-pubspec#android-configuration
Description
We're currently using Android Gradle Plugin (AGP) 7.6.3. When we try to run
flutter build apk
, it throws a build error for having a nullable R8 issue, related to the AGP v8 migration in the Android SDK.Attachments
Here's the error logs that we get:
It throws an unrelated R8 error but somehow it didn't expose the actual issue. So we went ahead and check the SDK changelog, and crossmatch it with the native SDKs.
Proposal
I propose we update the docs and remind the users to use the latest AGP version in the Installing SDK step:
I went through the Android SDK PR changes, and saw that the AGP was using the 8.5 version. Good thing is that the Flutter SDK Changelog does match the changes happening on the native plugins so I was able to see the changes.
Thanks!