Solved Firebase and Qt 5.13.0 - 'Color types not allowed...'
-
Hi,
I am trying to update the Android application from Qt 5.11.3 to Qt 5.13.0.
I had a problem with Firebase, so I changed the version of these packages to the latest:compile 'com.google.firebase:firebase-core:+' compile 'com.google.firebase:firebase-auth:18.1.0' compile 'com.google.firebase:firebase-messaging:19.0.1' compile 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar' compile 'com.google.android.gms:play-services-base:8.4.0'
but now, I got this error:
A:\build_ARMv74\android-build\build\intermediates\res\merged\debug\values\values.xml:3579:42-49: AAPT: Color types not allowed (at 'statusBarBackground' with value '#000000').
I have not defined 'statusBarBackground' property.
And when I replaced these lines:
compile 'com.android.support:support-v4:27.0.0' compile 'com.android.support:appcompat-v7:27.0.0' compile 'com.android.support:design:27.0.0' compile 'com.android.support:cardview-v7:27.0.0' compile 'com.android.support:recyclerview-v7:27.0.0'
With these:
compile 'androidx.core:core:1.0.0' compile 'androidx.appcompat:appcompat:1.0.0' compile 'com.google.android.material:material:1.0.0-alpha1' compile 'androidx.cardview:cardview:1.0.0' compile 'androidx.recyclerview:recyclerview:1.0.0'
I got error:
Error: more than one library with package name 'androidx.vectordrawable'
Any idea how to fix it?
-
Fixed - gradle version was too old