Once again it’s me and my admob extension having problems with the build process.
I’ve updated google play services and other related libs in the extension to the current versions and Defold fails to build it because of conflicting resources.
Failed building Android resources to R.java: /var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/bob_bundle_tmp2404027679367473102/res/values/values.xml:70: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
/var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/4101015115134236277/res/com.android.support.support-compat-27.1.1/values/values.xml:9: Original attribute defined here.
/var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/bob_bundle_tmp2404027679367473102/res/values/values.xml:85: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
/var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/4101015115134236277/res/com.android.support.support-compat-27.1.1/values/values.xml:14: Original attribute defined here.
/var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/bob_bundle_tmp2404027679367473102/res/values/values.xml:95: error: Attribute "fontStyle" already defined with incompatible format.
/var/folders/hz/pn_wgvvs5gs9t_2zkchyd0w80000gn/T/4101015115134236277/res/com.android.support.support-compat-27.1.1/values/values.xml:17: Original attribute defined here.
The problem is with the support-compat library, more specifically it’s resources.
I already have
excludeJars: ["(.*)/google-play-services.jar", "(.*)/android-support-v4.jar"]
in my appmanifest, what do I need to add here to exclude support-compat jar and resources? I’ve tried excluding everything with “(.*).jar”, didn’t seem to work either.
If my understanding of bob.jar is correct, than everything inside bob.jar/lib/android-res.zip
gets copied into APK without any exclude rules, am I correct?
If so, can we add excludeRes
or something into the appmanifest? Or make excludeJars
to also exclude these resources?