How on Ot6 compile for Android
-
wrote on 7 Feb 2022, 06:54 last edited by
Hi!
I use jdk 8 and last SDK and NDK, but I can't build for Android. Whot me need do? -
@Mihaill said in How on Ot6 compile for Android:
Whot me need do?
You need to explain what "but I can't build for Android" means exactly.
How else should anybody know what the problem could be? -
wrote on 7 Feb 2022, 07:54 last edited by
Qt 5 with this options build for android, but Qt6 can't built. Whot information you need?
-
@Mihaill said in How on Ot6 compile for Android:
Whot information you need?
An explanation what EXACTLY does not work...
-
wrote on 7 Feb 2022, 08:32 last edited by
-
@Mihaill The error tells you what the problem is: you need Java 11, not 1.8.
-
wrote on 7 Feb 2022, 09:41 last edited by Mihaill 2 Jul 2022, 11:26
-
If I use jdk 11, then I get error: fro SDK not higher 26 need jdk only 1.8. And build not work.
orAndroid build SDK version is not defined. Check Android settings.
@Mihaill To me it looks like you're trying to execute Java built for ARM.
-
wrote on 7 Feb 2022, 12:24 last edited by
My android device use arm cpu. And it isoptions work for qt 5. Whot me need do?
-
@Mihaill said in How on Ot6 compile for Android:
My android device use arm cpu
But the build is on your PC, not the device, right?
You should check your Android Kit - are there any warnings/errors? -
@Mihaill There were a couple of mayor changes in Android/gradle between SDK versions, Qt6 uses a much newer version of android/gradle than qt5 does.
I would suggest, creating a simple qt android project using Qt6, use QtCreator do create default android templates.
See if that compiles (I assume it will) check the difference in the android template files and change your existing one accordingly.
-
wrote on 7 Feb 2022, 12:34 last edited byThis post is deleted!
-
wrote on 7 Feb 2022, 14:22 last edited by
I change options, use jdk 11 and now get only 1 error: importing a package requires a version number
-
I change options, use jdk 11 and now get only 1 error: importing a package requires a version number
@Mihaill Then please show the place where the error originates.
-
wrote on 8 Feb 2022, 06:10 last edited by Mihaill 2 Aug 2022, 07:56This post is deleted!
-
wrote on 8 Feb 2022, 08:27 last edited by
Now I can build for android, but get error on step «Deploy to Android device»
-
@Mihaill What is the device you're using for deployment?
-
wrote on 10 Feb 2022, 06:46 last edited by
I use android phone. On windows i can deploy on my phone, but on ubuntudont cant.
-
@Mihaill What exact error do you get if your try to deploy?
-
wrote on 10 Feb 2022, 09:51 last edited by
The deployment device "SM-N9810" is disconnected.
But I use else phone. End I can't select device, when push build.
1/23