-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugneeds triageThis issue hasn't been reviewed by maintainersThis issue hasn't been reviewed by maintainers
Description
I have searched and made sure there are no existing issues for the issue I am filing
- I have searched the existing issues
Description
When trying to link a native module that implements push message handling, I get error:
"Dependency 'com.google.android.gms:play-services-base:18.7.0' requires core library desugaring to be enabled for :app"
Expected Behavior
The app should link to these modules.
Actual behavior
To fix this you need to add two lines to android/templates/build/app.build.gradle:
- Under compileOptions, add: coreLibraryDesugaringEnabled true - under
- Under dependencies, add: coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
dependencies {
implementation "androidx.appcompat:appcompat:${project.ext.tiAndroidXAppCompatLibVersion}"
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
...
Reproducible sample
Create a native Android module.
Add tuhis to build.gradle:
dependencies {
implementation("com.google.android.gms:play-services-base:18.7.0")
}
Add a module dependency to tiapp.xml, and build the app.
Steps to reproduce
Add this to dependencies in build.gradle of one of your native android modules:
implementation("com.google.android.gms:play-services-base:18.7.0")
Platform
No response
SDK version you are using
13.0.1.GA
Alloy version you are using
No response
Metadata
Metadata
Assignees
Labels
bugneeds triageThis issue hasn't been reviewed by maintainersThis issue hasn't been reviewed by maintainers