Android Development Guide
-
Hello Devnet,
Is there any android development guide from zero to hello world level ? Because, I tried 3 different computers but I didn't do anything. 2 computers gave me same error in here. I want to make simple bluetooth app for android.
Now, I use a windows installer:
I have a lot of questions,
-Which Qt version compatible which Android API?
-Should I use Android x86 or Android ARMv7 or etc. ?
-In tools section which MinGW do I need?
-At Qt 5.7 section has MinGW 5.3.0 and tools section has MinGW. Should I setup MinGW at tools section?
-How to create an APK? and so on..So, what can I do now? :)
Thanks, -
@ideadesigner Hi, Getting Started with Qt for Android should be helpful.
-
I tried again and I did it.
Now, I use emulator API level 16 and from left side projects settings, I choosed 'Android build SDK: android-16'.
But, I can not deploy some apps. For example, when I try to deploy "Bluetooth QML Chat Example" app to android (Qt 5.7 for android armv7) it gives me error.
Some apps don't give me error.BUILD FAILED C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:649: The following error occurred while executing this line: C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:694: null returned: 1
... When project is open, I choose from left side projects;
- I used api 16 emulator,
- I choosed 'Android build SDK: android-22'.
And deploying process is fine.
I didn't understand.
-
Hi.
Some of the Android API are required Android 4.3(API Level 18) or later. For Bluetooth devices with low power requirements, Android 4.3 (API Level 18) introduces API support for Bluetooth Low Energy.
Always check the version of the API before you can build.
-
@Devopia53
I see but I didn't use Bluetooth Low Energy. -
Hi @ideadesigner,
Try using Gradle instead of Ant. -
@Shrinidhi-Upadhyaya
Why do you suggest Gradle?