Hi BogDan, Thank you for sharing your blog post. Reading it confirmed to me that I had configured the SDK correctly. It ended up being that my JAVA_HOME environment variable was improperly set (it needed to point to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home).
I can now successfully create a new AVD. Unfortunately, when I try to run it, the AVD takes a long time to start and ultimately gives me the following error: "The application System UI (process com.android.systemui) has stopped unexpectedly. Please try again." Qt Creator's compile output window shows the following: 20:57:49: Starting: "/usr/bin/make" make: Nothing to be done for `first'. 20:57:50: The process "/usr/bin/make" exited normally. 20:58:39: Starting: "/Users/Meesh/Qt/Qt5.2.0/5.2.0-rc1/android_armv5/bin/androiddeployqt" --input /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-libAndroidTest.so-deployment-settings.json --output /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-build --deployment bundled --install --ant /Users/Meesh/android/apache-ant-1.9.2/bin/ant --android-platform android-13 --jdk /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home --device emulator-5554 20:58:39: Pulling files necessary for debugging. 20:58:39: Package deploy: Running command '/Users/Meesh/android/android-sdk-macosx/platform-tools/adb -s emulator-5554 pull /system/bin/app_process /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/app_process'. 20:58:39: Package deploy: Running command '/Users/Meesh/android/android-sdk-macosx/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/libc.so'. Generating Android Package Input file: /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-libAndroidTest.so-deployment-settings.json Output directory: /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-build Application binary: /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/libAndroidTest.so Android build platform: android-13 Install to device: emulator-5554 Application binary is not in output directory: /Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-build/libs/armeabi/libAndroidTest.so. Please run 'make install INSTALL_ROOT=/Users/Meesh/build-AndroidTest-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release/android-build' first. 20:58:40: The process "/Users/Meesh/Qt/Qt5.2.0/5.2.0-rc1/android_armv5/bin/androiddeployqt" exited with code 7. Error while building/deploying project AndroidTest (kit: Android for armeabi (GCC 4.8, Qt 5.2.0)) When executing step 'Deploy to Android device' Is there anything I'm missing? This is a simple Hello World app created through the Qt Creator project template. Thanks again, Alfonso On Wed, Nov 27, 2013, at 12:13 AM, BogDan wrote: > Hi, > > It seems you didn't install any Android API SDK . > Check this http://www.kdab.com/qt-on-android-episode-2/ article for more > info. > > Cheers, > BogDan. > > > > > >Hello, > > > >I am trying to develop an Android app with Qt and Qt Creator for the > >first time on Mac. Everything worked quite well for iOS, but I am > >running into one issue I cannot work around for Android. > > > >I have followed all the getting started steps as outlined here > >(http://doc-snapshot.qt-project.org/qt5-stable/androidgs.html). This > >includes installing the Android SDK, NDK, Ant and Java runtime. I have > >also updated my JAVA_HOME environment variable as indicated. > > > >Under the Android Preferences page in Qt Creator the SDK, NDK, Java and > >Ant paths all seem correct and Qt Creator is able to pick up several > >Android kits. However, when I try to add a new AVD, I get the following > >error: > > > >"Cannot create a new AVD. No sufficiently recent Android SDK available. > >Please install an SDK of at least API version 0." > > > >At this point I'm stuck and am not sure how to proceed. I imagine there > >must be something simple that I am doing wrong. > > > >In case it matters, I am using the recent Qt snapshot build # 172 for > >Mac (iOS + Android). > > > >Any help in resolving this issue is greatly appreciated. > > > >Thanks! > >_______________________________________________ > >Qt-creator mailing list > >[email protected] > >http://lists.qt-project.org/mailman/listinfo/qt-creator > > > > > > _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
