[Interest] Can't deploy anymore on QtCretor 4.5
Xavier Bigand
flamaros.xavier at gmail.com
Sat Dec 9 10:55:20 CET 2017
Yes, but QtCreator 4.4 had a bug when we get the SDK from Android Studio
instead of the stand alone version that is no more accessible.
QtCreator 4.5 which support the SDK from Android Studio tells me that
everything is ok with my Android configuration, but now with gradle instead
of ant I can't deploy.
We didn't do any change on the manifest file, so I don't understand the
issue.
2017-12-09 8:47 GMT+01:00 Nikos Chantziaras <realnc at gmail.com>:
> You need to edit the Android manifest file, not the pro.user file. Creator
> has a special editor dialog for it.
>
>
>
> On 09/12/17 02:05, Xavier Bigand wrote:
>
>> Hello,
>>
>> It seems to be a nice version, but I still have some trouble when
>> targeting Android, with the version 4.4 I had to edit the .pro.user to make
>> the deployment working by forcing the BuildTargetSdk at android-26. But now
>> it seems that something different goes wrong, here is my output:
>>
>> 00:39:06: Le processus "D:\Softs\SDK\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
>> s'est terminé normalement.
>> 00:39:06: Starting: "D:\Softs\SDK\Qt\5.9.3\android
>> _armv7\bin\androiddeployqt.exe" --input D:/Dev/Koalabs/HomeDesign3D/Pr
>> ojects/build-HomeDesign3D-Android_for_armeabi_v7a_GCC_4_9_
>> Qt_5_9_3_for_Android_armv7-Debug/android-libHomeDesign3D.so-deployment-settings.json
>> --output D:/Dev/Koalabs/HomeDesign3D/Projects/build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Debug/android-build
>> --deployment bundled --android-platform android-26 --jdk "C:/Program
>> Files/Java/jdk1.8.0_112" --gradle
>> Generating Android Package
>> Input file: D:/Dev/Koalabs/HomeDesign3D/Pr
>> ojects/build-HomeDesign3D-Android_for_armeabi_v7a_GCC_4_9_
>> Qt_5_9_3_for_Android_armv7-Debug/android-libHomeDesign3D.so-
>> deployment-settings.json
>> Output directory: D:/Dev/Koalabs/HomeDesign3D/Pr
>> ojects/build-HomeDesign3D-Android_for_armeabi_v7a_GCC_4_9_
>> Qt_5_9_3_for_Android_armv7-Debug/android-build/
>> Application binary: D:/Dev/Koalabs/HomeDesign3D/Pr
>> ojects/build-HomeDesign3D-Android_for_armeabi_v7a_GCC_4_9_
>> Qt_5_9_3_for_Android_armv7-Debug/libHomeDesign3D.so
>> Android build platform: android-26
>> Install to device: No
>> The JavaCompile.setDependencyCacheDir() method has been deprecated and
>> is scheduled to be removed in Gradle 4.0.
>> The TaskInputs.source(Object) method has been deprecated and is scheduled
>> to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty()
>> instead.
>> :preBuild UP-TO-DATE
>> :preDebugBuild UP-TO-DATE
>> :checkDebugManifest
>> :prepareDebugDependencies
>> :compileDebugAidl
>> :compileDebugRenderscript
>> :generateDebugBuildConfig
>> :generateDebugResValues
>> :generateDebugResources
>> :mergeDebugResources
>> :processDebugManifest
>> D:\Dev\Koalabs\HomeDesign3D\Projects\build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Deb
>> ug\android-build\AndroidManifest.xml:78:5-66 Warning:
>> Element uses-permission#android.permission.INTERNET at
>> AndroidManifest.xml:78:5-66 duplicated with element declared at
>> AndroidManifest.xml:67:9-71
>> D:\Dev\Koalabs\HomeDesign3D\Projects\build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Deb
>> ug\android-build\AndroidManifest.xml:80:5-80 Warning:
>> Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at
>> AndroidManifest.xml:80:5-80 duplicated with element declared at
>> AndroidManifest.xml:68:5-81
>> D:\Dev\Koalabs\HomeDesign3D\Projects\build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Deb
>> ug\android-build\AndroidManifest.xml:85:5-78 Warning:
>> Element uses-permission#android.permission.ACCESS_NETWORK_STATE at
>> AndroidManifest.xml:85:5-78 duplicated with element declared at
>> AndroidManifest.xml:69:5-79
>> D:\Dev\Koalabs\HomeDesign3D\Projects\build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Deb
>> ug\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:173:28-65:
>> AAPT: No resource found that matches the given name (at 'value' with value
>> '@integer/google_play_services_version').
>> D:\Dev\Koalabs\HomeDesign3D\Projects\build-HomeDesign3D-Andr
>> oid_for_armeabi_v7a_GCC_4_9_Qt_5_9_3_for_Android_armv7-Deb
>> ug\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:171:
>> error: Error: No resource found that matches the given name (at 'value'
>> with value '@integer/google_play_services_version').
>>
>>
>> :processDebugResources FAILED
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Execution failed for task ':processDebugResources'.
>> > com.android.ide.common.process.ProcessException: Failed to execute
>> aapt
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or
>> --debug option to get more log output.
>>
>>
>>
>>
>>
>>
>> Does someone have any idea on how to fix that?
>>
>>
>>
>> --
>> Xavier
>>
>>
>>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
--
Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171209/7e1ac359/attachment.html>
More information about the Interest
mailing list