1. Install QT
2. Installing the JDK
Configure the following system environment variables:
Java_home |
D:\Java\jdk |
Path |
%java_home%\bin;%java_home%\jre\bin |
CLASSPATH |
.; %java_home%\lib;%java_home%\lib\tools.jar |
On the command line, enter the following command to see if the installation was successful:
java-version
Java
Javac
3. Install the Android SDK
If the package does not refresh, open Directory C:\WINDOWS\system32\drivers\etc, modify the Hosts file
At the end of the document, add the following:
#google_android更新
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
203.208.46.146 dl.htcdev.com
Then reopen the SDK Manager
Tick the first item of other
Add the folder "D:\Android\android-sdk\platform-tools" where ADB is located to the system environment variable path
Use the following command to verify:
4. Install Android NDK
5. Install Apache Ant
: http://ant.apache.org/
Add Ant's Folder "D:\Java\ant\bin" to the system environment variable path
Verify with the ant command:
6, the QT creator Android environment configuration
Set the path of the ant, SDK, NDK in Tools-options-Android.
7. Create AVD
Create an AVD and click on the "Start ..." button; You can also use a physical machine.
8. Follow-up work
Connect your phone
Create a project
Create signatures, configure key properties such as package names
Designing the UI, writing code
Compile
Link
Build apk
Debugging on the device
Publish to market
This article uses Chrysanthemum Zi Yue to publish
QT on Android Development