QT on Android Development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.