Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Creating Android App in Qt 5.14.2 on Win10



  • Hi,
    I wanted to create Android App in Qt on Win10.
    Firstly I installed Android too by Maintanance Tool. Both MSVC 2017 32/64 bits were already installed on Win10.

    Than I made all adjustment like below;

    b41e07ae-9e16-46c3-b15d-433cb60b5b36-resim.png

    And kits was also look OK.

    59987267-45f2-4f0d-8157-d61a3146b83f-resim.png

    When I create simle "Hello World" program the below arror message appear:

    
    Initializing deployment to Android device/simulator
    Deploying to WNPNU19922309283
    00:02:49: Running steps for project Mobil01...
    00:02:49: Starting: "C:\Qt\5.14.2\android\bin\qmake.exe" D:\Belgeler\Qt\Mobil01\Mobil01.pro -spec android-clang "CONFIG+=debug" "CONFIG+=qml_debug" ANDROID_ABIS="armeabi-v7a"
    Info: creating stash file D:\Belgeler\Qt\build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug\.qmake.stash
    00:02:50: The process "C:\Qt\5.14.2\android\bin\qmake.exe" exited normally.
    00:02:50: Starting: "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -f D:/Belgeler/Qt/build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug/Makefile qmake_all
    make: Nothing to be done for 'qmake_all'.
    00:02:50: The process "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    00:02:50: Starting: "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -j8
    D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\Mobil01 -I. -IC:\Qt\5.14.2\android\include -IC:\Qt\5.14.2\android\include\QtQuick -IC:\Qt\5.14.2\android\include\QtGui -IC:\Qt\5.14.2\android\include\QtQmlModels -IC:\Qt\5.14.2\android\include\QtQml -IC:\Qt\5.14.2\android\include\QtNetwork -IC:\Qt\5.14.2\android\include\QtCore -Iarmeabi-v7a -IC:\Qt\5.14.2\android\mkspecs\android-clang -o armeabi-v7a\main.obj ..\Mobil01\main.cpp
    C:\Qt\5.14.2\android\bin\rcc.exe -name qml ..\Mobil01\qml.qrc -o armeabi-v7a\qrc_qml.cpp
    D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\Mobil01 -I. -IC:\Qt\5.14.2\android\include -IC:\Qt\5.14.2\android\include\QtQuick -IC:\Qt\5.14.2\android\include\QtGui -IC:\Qt\5.14.2\android\include\QtQmlModels -IC:\Qt\5.14.2\android\include\QtQml -IC:\Qt\5.14.2\android\include\QtNetwork -IC:\Qt\5.14.2\android\include\QtCore -Iarmeabi-v7a -IC:\Qt\5.14.2\android\mkspecs\android-clang -o armeabi-v7a\qrc_qml.obj armeabi-v7a\qrc_qml.cpp
    D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fno-limit-debug-info -Wl,-soname,libMobil01_armeabi-v7a.so -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libMobil01_armeabi-v7a.so armeabi-v7a\main.obj armeabi-v7a\qrc_qml.obj   C:/Qt/5.14.2/android/lib/libQt5Quick_armeabi-v7a.so C:/Qt/5.14.2/android/lib/libQt5Gui_armeabi-v7a.so C:/Qt/5.14.2/android/lib/libQt5QmlModels_armeabi-v7a.so C:/Qt/5.14.2/android/lib/libQt5Qml_armeabi-v7a.so C:/Qt/5.14.2/android/lib/libQt5Network_armeabi-v7a.so C:/Qt/5.14.2/android/lib/libQt5Core_armeabi-v7a.so -lGLESv2   -llog -lz -lm -ldl -lc
    00:02:52: The process "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    00:02:52: Starting: "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=D:\Belgeler\Qt\build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug\android-build" install
    C:\Qt\5.14.2\android\bin\qmake.exe -install qinstall -exe libMobil01_armeabi-v7a.so D:\Belgeler\Qt\build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug\android-build\libs\armeabi-v7a\libMobil01_armeabi-v7a.so
    00:02:52: The process "D:\ProgramFiles\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    00:02:52: Starting: "C:\Qt\5.14.2\android\bin\androiddeployqt.exe" --input D:/Belgeler/Qt/build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug/android-Mobil01-deployment-settings.json --output D:/Belgeler/Qt/build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug/android-build --android-platform android-29 --jdk D:/ProgramFiles/AdoptOpenJDK/jdk-15.0.1.9-hotspot --gradle
    Generating Android Package
      Input file: D:/Belgeler/Qt/build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug/android-Mobil01-deployment-settings.json
      Output directory: D:/Belgeler/Qt/build-Mobil01-Android_Qt_5_14_2_Clang_Multi_Abi-Debug/android-build/
      Application binary: Mobil01
      Android build platform: android-29
      Install to device: No
      -- Skipping C:/Qt/5.14.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
      -- Skipping C:/Qt/5.14.2/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so,lib/libQt5Widgets_armeabi-v7a.so.
    java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
    	at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)
    	at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit>(GroovyClassValueFactory.java:35)
    	at org.codehaus.groovy.reflection.ClassInfo.<clinit>(ClassInfo.java:109)
    	at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:95)
    	at org.codehaus.groovy.reflection.ReflectionCache.<clinit>(ReflectionCache.java:39)
    	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:209)
    	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:107)
    	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:85)
    	at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:36)
    	at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:86)
    	at groovy.lang.GroovyObjectSupport.getDefaultMetaClass(GroovyObjectSupport.java:59)
    	at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
    	at org.gradle.internal.extensibility.DefaultExtraPropertiesExtension.<init>(DefaultExtraPropertiesExtension.java:29)
    	at org.gradle.internal.extensibility.DefaultConvention.<init>(DefaultConvention.java:48)
    	at org.gradle.api.internal.plugins.DefaultConvention.<init>(DefaultConvention.java:28)
    	at org.gradle.internal.extensibility.ExtensibleDynamicObject.<init>(ExtensibleDynamicObject.java:60)
    	at org.gradle.internal.instantiation.MixInExtensibleDynamicObject.<init>(MixInExtensibleDynamicObject.java:34)
    	at org.gradle.initialization.DefaultSettings_Decorated.getAsDynamicObject(Unknown Source)
    	at org.gradle.initialization.SettingsFactory.createSettings(SettingsFactory.java:58)
    	at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:60)
    	at org.gradle.initialization.PropertiesLoadingSettingsProcessor.process(PropertiesLoadingSettingsProcessor.java:37)
    	at org.gradle.initialization.SettingsEvaluatedCallbackFiringSettingsProcessor.process(SettingsEvaluatedCallbackFiringSettingsProcessor.java:34)
    	at org.gradle.initialization.RootBuildCacheControllerSettingsProcessor.process(RootBuildCacheControllerSettingsProcessor.java:36)
    	at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:50)
    	at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:47)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    	at org.gradle.initialization.BuildOperationSettingsProcessor.process(BuildOperationSettingsProcessor.java:47)
    	at org.gradle.initialization.DefaultSettingsLoader.findSettingsAndLoadIfAppropriate(DefaultSettingsLoader.java:104)
    	at org.gradle.initialization.DefaultSettingsLoader.findAndLoadSettings(DefaultSettingsLoader.java:45)
    	at org.gradle.initialization.SettingsAttachingSettingsLoader.findAndLoadSettings(SettingsAttachingSettingsLoader.java:35)
    	at org.gradle.internal.composite.CommandLineIncludedBuildSettingsLoader.findAndLoadSettings(CommandLineIncludedBuildSettingsLoader.java:34)
    	at org.gradle.internal.composite.ChildBuildRegisteringSettingsLoader.findAndLoadSettings(ChildBuildRegisteringSettingsLoader.java:47)
    	at org.gradle.internal.composite.CompositeBuildSettingsLoader.findAndLoadSettings(CompositeBuildSettingsLoader.java:35)
    	at org.gradle.initialization.DefaultSettingsPreparer.prepareSettings(DefaultSettingsPreparer.java:36)
    	at org.gradle.initialization.NotifyingSettingsPreparer$LoadBuild.doLoadBuild(NotifyingSettingsPreparer.java:59)
    	at org.gradle.initialization.NotifyingSettingsPreparer$LoadBuild.run(NotifyingSettingsPreparer.java:54)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
    	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    	at org.gradle.initialization.NotifyingSettingsPreparer.prepareSettings(NotifyingSettingsPreparer.java:42)
    	at org.gradle.initialization.DefaultGradleLauncher.prepareSettings(DefaultGradleLauncher.java:189)
    	at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:133)
    	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:125)
    	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:105)
    	at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
    	at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
    	at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
    	at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
    	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
    	at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
    	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
    	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
    	at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
    	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    	at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
    	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
    	at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
    	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
    	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
    	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
    	at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
    	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
    	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
    	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
    	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
    	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
    	at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
    	at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
    	at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
    	at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
    	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
    	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
    	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
    	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
    	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
    	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
    	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
    	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
    	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
    	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
    	at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:55)
    	at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:208)
    	at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:394)
    	at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:367)
    	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:37)
    	at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:23)
    	at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:360)
    	at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:292)
    	at org.gradle.launcher.Main.doAction(Main.java:36)
    	at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
    	at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
    	at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31)
    	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
    	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
    
    * 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
    
    BUİLD FAILED in 1s
    Building the android package failed!
      -- For more information, run this command with --verbose.
    00:02:54: The process "C:\Qt\5.14.2\android\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project Mobil01 (kit: Android Qt 5.14.2 Clang Multi-Abi)
    When executing step "Build Android APK"
    00:02:54: Elapsed time: 00:05.
    

    I choose my real mobile phone to run my code without problem. I see my phone on the device list.

    What do you suggest to me please?

    Regards,
    Mucip:)



  • Hi,
    I found a solution here.

    I just cerated templade in Project >>Build section. In this case I see the all gradle files in project file tree. I found the "/android/gradle/wrapper/gradle-wrapper.properties" file.
    And change it the last Gradle version like below:

    distributionUrl=https://services.gradle.org/distributions/gradle-6.7-bin.zip

    Now I can see the buble sensor program in my mobile phone. :)

    Regards,
    Mucip:)



  • Hi,
    I found a solution here.

    I just cerated templade in Project >>Build section. In this case I see the all gradle files in project file tree. I found the "/android/gradle/wrapper/gradle-wrapper.properties" file.
    And change it the last Gradle version like below:

    distributionUrl=https://services.gradle.org/distributions/gradle-6.7-bin.zip

    Now I can see the buble sensor program in my mobile phone. :)

    Regards,
    Mucip:)



  • Hi,
    The problem is Where The Qt read this definition every time?

    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    
    

    Should I change it to "gradle-6.7-bin.zip" every time?

    Regards,
    Mucip:)



  • Hi,
    The answer is in this file. I realized that this is temlate file.

    C:\Qt\5.14.2\android\src\3rdparty\gradle\gradle\wrapper\gradle-wrapper.properties

    When you change this file it always come 6.7 :)

    Regards,
    Mucip:)


Log in to reply