As I said, for ProviderInstaller.InstallIfNeeded
to work it has to be possible to exclude com.android.support
dependency for Google Play Services. The Android Studio project (attached to one of my previous emails) build.gradle
dependencies look like this:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation('com.google.android.gms:play-services-base:16.0.1') {
exclude group: 'com.android.support'
}
implementation('com.google.android.gms:play-services-basement:16.1.0') {
exclude group: 'com.android.support'
}
implementation project(':com.straightsync.android.library')
implementation project(':cooper')
implementation project(':swift')
}
As you can see, I’m excluding com.android.support
dependency from com.google.android.gms:play-services-base
and com.google.android.gms:play-services-basement
. AFAIK this can’t be done in Fire so ProviderInstaller
fails.
Given that I can’t compile my project in Fire I just compile the shared code into Android Library and do the rest in Android Studio. Which is too bad because I would prefer to use Fire for everything. But I’m not a paying customer at the moment so I know I can’t expect you to loose much time solving this problem. I hope you’ll be able to do it sometime. Until then, I can live with Android Studio.