Beta 9.3#4 - Problem with AndroidX AppCompat

DonManfred

Expert
Licensed User
I am wrapping Firebase InApp Messaging.

A testproject only has the library and some additional jars. When compiling it stucks with this error

B4A Version: 9.30 BETA #4
Java Version: 8
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:72: error: Attribute "navigationMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:74: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:81: error: Attribute "displayOptions" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:82: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:252: error: Attribute "tintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:255: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:279: error: Attribute "tickMarkTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:282: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:314: error: Attribute "autoSizeTextType" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:314: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:434: error: Attribute "actionBarSize" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:435: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:737: error: Attribute "buttonTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:740: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:802: error: Attribute "showDividers" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:803: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:876: error: Attribute "alphabeticModifiers" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:877: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:891: error: Attribute "numericModifiers" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:892: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:918: error: Attribute "showAsAction" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:921: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:966: error: Attribute "iconTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:969: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:1110: error: Attribute "thumbTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:1113: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:1134: error: Attribute "trackTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:1137: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:1219: error: Attribute "buttonGravity" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:1221: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values\values.xml:1275: error: Attribute "backgroundTintMode" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\appcompat-v7\28.0.0\unpacked-appcompat-v7-28.0.0\res\values\values.xml:1278: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.0.0\unpacked-coordinatorlayout-1.0.0\res\values\values.xml:28: error: Attribute "layout_anchorGravity" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\coordinatorlayout\28.0.0\unpacked-coordinatorlayout-28.0.0\res\values\values.xml:30: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.0.0\unpacked-coordinatorlayout-1.0.0\res\values\values.xml:67: error: Attribute "layout_insetEdge" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\coordinatorlayout\28.0.0\unpacked-coordinatorlayout-28.0.0\res\values\values.xml:67: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.0.0\unpacked-coordinatorlayout-1.0.0\res\values\values.xml:84: error: Attribute "layout_dodgeInsetEdges" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\coordinatorlayout\28.0.0\unpacked-coordinatorlayout-28.0.0\res\values\values.xml:86: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\core\core\1.0.2\unpacked-core-1.0.2\res\values\values.xml:36: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:42: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\core\core\1.0.2\unpacked-core-1.0.2\res\values\values.xml:51: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:54: Original attribute defined here.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\androidx\core\core\1.0.2\unpacked-core-1.0.2\res\values\values.xml:61: error: Attribute "fontStyle" already defined with incompatible format.
e:\android.readytorunsdk\tools\..\extras\b4a_remote\com\android\support\support-compat\28.0.0\unpacked-support-compat-28.0.0\res\values\values.xml:62: Original attribute defined here.
I am not using B4A AppCompat in my app but the inappmessaging is using AndoidX AppCompat.

B4X:
#AdditionalJar: com.google.firebase:firebase-core
#AdditionalJar: com.google.firebase:firebase-common
#AdditionalJar: com.google.gms:google-services
#AdditionalJar: com.google.firebase:firebase-iid
#AdditionalJar: com.google.firebase:firebase-abt
#AdditionalJar: com.google.firebase:firebase-inappmessaging-display
#AdditionalJar: com.google.firebase:firebase-inappmessaging
#AdditionalJar: com.google.android.datatransport:transport-api
#AdditionalJar: com.google.android.datatransport:transport-runtime
'#AdditionalJar: com.google.dagger:dagger
'#AdditionalJar: com.google.dagger:dagger-android
'#AdditionalJar: com.google.dagger:dagger-android-support
#AdditionalJar: guice-4.2.2.jar
#AdditionalJar: javax.inject-1.jar
#AdditionalJar: javax.servlet-api-4.0.1.jar
#AdditionalJar: rxjava-2.2.9.jar
#AdditionalJar: rxandroid-2.1.1.aar
#AdditionalJar: rxjava-reactive-streams-1.2.1.jar
#AdditionalJar: reactive-streams-1.0.2.jar
#AdditionalJar: picasso-2.5.2.jar
#AdditionalJar: okhttp-2.7.5.jar
'#AdditionalJar: opencensus-api-0.20.0.jar
#AdditionalJar: grpc-protobuf-lite-1.20.0.jar
#AdditionalJar: grpc-android-1.21.0.aar
#AdditionalJar: grpc-core-1.21.0.jar
#AdditionalJar: grpc-stub-1.21.0.jar
#AdditionalJar: grpc-services-1.21.0.jar
Any hint is highly welcome
 

Erel

Administrator
Staff member
Licensed User
I guess that one of the maven artifacts references Android Support Library.
#AdditionalJar: okhttp-2.7.5.jar
This will cause problems with OkHttpUtils2.

I'm missing com.google.dagger/dagger.
 
Top