Closed rhardih closed 5 years ago
Hi René - thanks for trying out QtFirebase! Hmm... Never seen that one before. What version of gradle are you using? We are using gradle-wrapper in the example app. Maybe try and use the gradle version also used in QtFirebaseExample? Or maybe the same version of the appcompat libs?
It's unbelievably often things break on either Android or iOS because of some changes
Tried a fresh clone and got a different error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':debugCompileClasspath'.
> Could not find firebase-iid-interop.aar (com.google.firebase:firebase-iid-interop:16.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-iid-interop/16.0.0/firebase-iid-interop-16.0.0.aar
> Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
> Could not find support-v4.aar (com.android.support:support-v4:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.aar
> Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-vector-drawable/27.1.1/support-vector-drawable-27.1.1.aar
> Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
> Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
> Could not find runtime.aar (android.arch.core:runtime:1.1.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
> Task :preDebugBuild FAILED
BUILD FAILED in 6s
1 actionable task: 1 executed
Building the android package failed!
-- For more information, run this command with --verbose.
19:36:17: The process "/Users/rene/Code/Qt/5.11.2/android_armv7/bin/androiddeployqt" exited with code 14.
Error while building/deploying project QtFirebaseExample (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.2 for Android ARMv7))
When executing step "Build Android APK"
I added google()
to allprojects > repositories
and then got back to the error above.
Then I tried updating the appcompat
dependency to 28.0.0 and got a bit further still:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> Failed to process resources, see aapt output above for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
/Users/rene/Code/build-QtFirebaseExample-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_2_for_Android_ARMv7-Debug/android-build/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontStyle not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/font not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontWeight not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/rene/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/174b36a38684409e09ed9e0a2a4614b9/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
> Task :processDebugResources FAILED
Now finally I've got through a build by setting:
//compileSdkVersion androidCompileSdkVersion.toInteger()
compileSdkVersion 28
However, as noted androidCompileSdkVersion
, should be set in gradle.properties and I've tried to do that, but I think QtCreator just overwrites it. I'll dig a big more.
I haven't been able to figure out how to overwrite androidCompileSdkVersion
from gradle.properties, but I guess my problem is solved, so this issue can be closed.
@Larpon do you want the two minor changes for now?
https://github.com/Larpon/QtFirebaseExample/compare/master...rhardih:master
I'm trying to figure out how to move on from this error:
I've tried removing everything in
~/.gradle/cache
but still no luck.Versions; Qt Creator 4.7.1 and Qt 5.11.2.