Android emulator mac 2017 development
Now you can just run your application from Qt Creator:Īnd here we say “sorry” to HTC Evo 3D, because it has a really old Android API (15): That will allow you to specify the application name, icon, permissions and other stuff (but don’t use spaces, otherwise your application will fail to launch saying that it couldn’t find a library): You can also add Android manifest and other templates: If everything was set-up correctly, you should be able to see the Android build SDK version in your project build settings:
I will use the Color Corners example again, which is not an Android application by design, but it’s a cross-platform framework we are dealing here with, so why the hell not. Time to build and run some application on your Android device. I put mine to ~/programs/jdk/.Ĭheck if you have some not accepted licenses:Īnyway, once you allow the debugging request, your device will be recognized by ADB (and Qt Creator deployment dialog). At the moment there are some problems with JDK 9, so it is recommended to go with JDK 8. Note that at the moment (Qt Creator 4.7.1 and Qt 5.11.1) NDK version r18 won’t work, you should take 17c.ĭownload and unpack JDK.
#ANDROID EMULATOR MAC 2017 DEVELOPMENT INSTALL#
On Windows you will also need to install Google USB driver: If you want to check what’s installed, launch Android Studio again and go to settings: It will ask you for an installation path (I chose ~/programs/android/) and then install Android SDK and Android SDK Platform (latest version by default). Now run ~/programs/android-studio/bin/studio.sh. I unpacked it to ~/programs/android-studio/. I have here HTC Evo 3D (Android 4.0.3), Google Nexus 7 (Android 6.0.1), and Google Pixel C (Android 8.1.0):ĭownload and install Android Studio. I’ll do it for Linux (running inside a virtual machine on my Mac).įirst, install Android component from the Qt installer: The process is more or less the same across all the major development hosts (Linux, Mac OS, Windows). I recommend you to use the latest version of Qt (5.10 at the moment) and Qt Creator (4.5.0 at the moment), because some annoying Android-related issues were fixed there, and thus everything is easier now. However (as usual), there are some surprises that are waiting for you down the road, so I decided to complement the official guide with my comments and screenshots.
#ANDROID EMULATOR MAC 2017 DEVELOPMENT HOW TO#
Here I’ll show you how to set-up Qt development environment for Android.Īctually, the process is already described in the Qt documentation: setting up both the environment and Qt Creator. Android is one of the Qt’s supported target platforms, so you can create applications for Android using Qt.