larpon / QtFirebase

An effort to bring Google's Firebase C++ API to Qt + QML
MIT License
283 stars 83 forks source link

Could not determine the dependencies of task ':compileDebugJavaWithJavac'. #134

Closed shariatraad closed 4 years ago

shariatraad commented 4 years ago

Hello! I'm trying to build the example and I have followed all of the steps but I keep getting this error on my compile output, any idea how to solve this issue?

FAILURE: Build failed with an exception.

BUILD FAILED in 24s Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl Building the android package failed! -- For more information, run this command with --verbose. 13:05:07: The process "C:\Qt\5.13.1\android_arm64_v8a\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project QtFirebaseExample (kit: Android for arm64-v8a (Clang Qt 5.13.1 for Android ARM64-v8a)) When executing step "Build Android APK"

larpon commented 4 years ago

Hi @shariatraad, and welcome to the herd. Your problem might be a Gradle version mismatch error. Please try and update buildToolsVersion and compileSdkVersion to something more recent as suggested here.

shariatraad commented 4 years ago

Dear @Larpon I have upgraded my

gradle to gradle-5.4.1 com.android.tools.build to gradle:3.5.0 BuildToolsVersion to "29.0.2" compileSdkVersion to 26.

But still get the same error

larpon commented 4 years ago

Dear @Larpon I have upgraded my

gradle to gradle-5.4.1 com.android.tools.build to gradle:3.5.0 BuildToolsVersion to "29.0.2" compileSdkVersion to 26.

But still get the same error

Well - that sucks :slightly_smiling_face: What version of the Firebase SDK are you using? Many report that 6.1.0 currently seem to have the best success rate

larpon commented 4 years ago

compileSdkVersion should now be a minimum of 28 due to some eco-system changes. I've successfully compiled the Android version of QtFirebaseExample against Firebase C++ SDK v6.7.0

shariatraad commented 4 years ago

I forgot to close this issue that I opened couple of months ago which has been solved .. after playing around with gradle version, buildtool version and firebase sdk version I could compile it without any issues! Thanks for the solution Larpon!

larpon commented 4 years ago

Thanks for aiding our house keeping 👍