On my Mac mini OS X 10.7.4, I have installed Android SDK which contains all API's up to level 19 (Android 4.4.2) onto the /usr/local directory (permissions set to 777) and I have Eclipse Luna (4.4.1) with ADT plugin installed and they all seem to work. When I select the 'Android Sample Project' option for platform 2.2.3 and create a Skeleton Application, it gets created and runs fine as an Android Application on my 2010 HTC Desire connected over USB debugging mode.
But when I select Android Application Project with those options:
Min required SDK: API 8: Android 2.2
Target SDK: API10: Android2.3.3
Compile with: API19: Android 4.4
Theme: Holo Dark
Create Activity: selected
The wizard hangs on after I click the finish button. The project is actually created and is available on the Package Explorer. If I return back to the first screen of the wizard, "A project with that name already exists in the workspace" is displayed. After I close the wizard and try to run the project as an Android Application, it contains many errors, here is the screenshot for clarity:
If I repeat the same steps with the Create Activity: not selected, the wizard closes and when I run it as an Android Application it says (headers truncated for clarity)
Uploading Sample.apk onto device 'SH11FRT01473'
Installing Sample.apk... Success!
/Sample/bin/Sample.apk installed on device
Done!
But I can't try or see this Sample app on my HTC device.
Need help and advice on this. Eclipse Luna is the greatest version of Eclipse for my version of OS X. Thank you.
After some searching I've noticed that the problem didn't depend on the Eclipse Luna. It was rather a problem with the Android SDK itself. Because the Android application I wanted to build was target Android2.3.3, it needed the so-called ActionBar support Library. But the Android SDK didn't contain that library and the Android SDK Manager didn't list it under the Extras folder so I had to install that library manually. I've downloaded the appropriate package from: https://dl-ssl.google.com/android/repository/support_r21.zip into my downloads folder ~/Downloads and installed it with:
tar -xvf ~/Downloads/support_r21.zip --directory
/usr/local/android-sdk-4-0-r15/extras/android/
After that, without restarting Eclipse, I created the Android Application Project without any hang-on.
Related
The last time I updated visual studio, I accidentally unchecked 'Android emulators' from the modules list, so they all got uninstalled.
Since I need them, I went and modified the installation from windows 'add or remove programs', checked and installed 'Android emulators' as a visual studio module, and all seemed fine.
But then, when I tried to build an Android version of my Apache Cordova app, I noticed that the Android emulators did not get added back to the target list. The Cordova project is set as a start up project.
I tried reinstalling the whole module and also reinstalling the device profiles, but they're still missing.
Is there a way to configure what devices/emulators show in that list?
Thank you.
So it seems like you are missing the Visual Studio emulators for Android, which we have pre configured to show a 5" and 7" option. A fresh install probably just missed that component (because its not automatically checked). Modify "Microsoft Visual Studio" from the Add or Remove programs menu, and check the VS Emulators for Android to add them to your version of VS. See the checklist image below for where the component is.
If you want to create a custom Android emulator yourself to show under "Google Android Emulator" (because that comes pre-installed), just make sure that your Google Android emulator is running the virtual device that you created, and on deploy your app should show up on that emulator.
As the title reads, it crashes every time I make a new android app project. It seems to run fine when I make a new Java project, however. The error code i get is: Java was started but returned with exit code: -805306369.
That's all I could post, i can't seem to copy the error message (it's a pop-up, doesn't appear on console)
Just as it's about to load the project, eclipse goes Not Responding for a long time, so I'm forced to close it and I get that error message.
Any help would be appreciated, thank you.
If you're using Eclipse to build Android, do the following in order:
Install the JDK from Oracle. You can get the JDK here.
Install Eclipse (e.g. Eclipse Standard version). As of November 2013, Juno (Eclipse v4.2.2) is the most stable release of Eclipse. Refrain from using Kepler release for now. You can get old, stable release of Eclipse here. Or, new version here if it is stable. Important: When you install Eclipse, do not overwrite an existing Eclipse installed directory but instead create a new directory and install Eclipse there. This would prevent getting libraries mixed up between different versions of Eclipse.
Install the Android SDK. You can get the SDK here. For beginners, choose the installer_r22.3-windows.exe package.
Install the Android Development Tools (ADT). You can get the ADT here.
Start Eclipse.
From Eclipse's menu, select Window | Preferences. Then, select Java | Installed JREs option. Check to see if Eclipse has listed correctly the JDK installed directory created from step 1 above. If not, click Add button and browse to your JDK installed directory. On Windows, this directory is normally found under C:\Program Files\Java\jdk1.6.0_45 (e.g. Java 1.6 release 45).
In Eclipse's Preferences screen, select Android option and check that the directory of the Android SDK Location is correct. It should be correct if you have successfully completed step 3 above.
To create a new Android project, from Eclipse's menu select File | New | Android Application Project. Fill in the required information in the New Android Application screen and click Finish when done.
OPTIONAL: Under Eclipse's Window menu option, there are two Android submenu options: Android SDK Manager and Android Virtual Device Manager.
a. The Android SDK Manager option allows you to install/remove versions and/or components used for Android development.
b. The Android Virtual Device Manager option allows you to create virtual Android devices for development and testing purposes. For example, an Android virtual device with a Target of Android 2.1 - API Level 7 will allow you to test your Android application that will later run in production on devices - phones, tablets, notes - that run Android firmware version 2.1.
I have been trying to deploy a simple Qt application to android but with no luck. Details are as follows
Qt Version : Qt 5.1.0 for Android (Windows 32-bit) downloaded from here
Qt Creator version : Qt Creator 2.7.2
I have set the following options in Qt Creator
Android configurations
Android SDK location : C:\adt-bundle-windows-x86-20130717\adt-bundle-windows-x86-20130717\sdk
Android NDK location : C:\android-ndk-r8e
Ant location : C:\Program Files\Java\jdk1.7.0_25
AVD name : AndroidAVD (API Level 17,armeabi-v7a)
Kit Configuration
Name of the kit : Android for arm(GCC 4.4.3,Qt 5.1.0)(default)
Device type : Android
Device : Run on Android
Sysroot : Its empty
Compiler : GCC (arm 4.4.3 )
Android GDB Server : C:\android-ndk-r8e\prebuilt\android-arm\gdbserver
Debugger : C:\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-gdb.exe
Qt Version : 5.1.0 (android_armv7)(C:\Qt\Qt5.1.0\5.1.0\android_armv7\bin\qmake.exe)
Deploy configuration of the Kit(for both Release and Debug) :
Deploy local Qt libraries and Use Local Qt libraries option is checked
OS : Windows 7 64 bit
The Problem
When I try to build,everything builds fine. I get libTheTestApp.so in my build directory.
Also the project directory now contains a folder named "android" containing the manifest file and some other files.
When I try to Run the app, the emulator starts but I can't find my app. If I close my
emulator and return to Qt Creator I get the following error
Please wait, searching for a suitable device for target:android-17.
Error while building/deploying project TheTestApp (kit: Android for arm (GCC 4.4.3, Qt 5.1.0))
When executing step 'Deploy to Android device'
If I do "adb devices" while the emulator is running, I get the id of the running emulator
Also I tried searching the internet before posting this question here. I found this link.
My question is how do I deploy a Qt5 application to an android device? Are there any links
which say how to do it? I am asking this because I have followed the instructions provided
in Qt5ForAndroidBuilding link while building the app.
Thanks for your time.
I was successfully able to deploy a simple QT application to my android device.
From what I understand ,Qt creator first tries to deploy the app to a device if it finds one. If no device is found, it tries to launch an AVD and deploys the application to the emulator.
"Please wait, searching for a suitable device for target:android-17."
Try targeting a lower api level by changing it in Projects->Selected Toolkit -> Run -> Package Configuartion -> Manifest
And also , make sure that the Ant location points to InstallLocation\ant\bin\ant.bat
Video Build and deploy Qt apps to Android using Qt 5.1 on Windows http://www.youtube.com/watch?v=_nkhlhBwkjk.
You did not mention that whether you specified jdk location in Qt Creator or not.
for ant location, please specify the path to bin/ant.bat file from ant directory.
For people who will see this post in the future:
Do not launch avd from Qt Creator, first run the avd from android sdk manager
do not create your own avd, use the existing ones instead, as follows
go to android sdk folder, open android SDK Manager > tools > Manage AVDs...
there are two tabs at the top, go to "Device Definition" tab
select any one avd and click on "Create AVD"
from new window that comes up, select target api level, cpu/abi and check snapshot checkBox at the bottom of the window and press "ok" button.
new window comes up with the specifications of created avd, click ok
now you have a valid avd. Select it and press "start" button.
wait until the avd is lauched, unlock it and run you project.
For a good documentation on deploying to Android device:
http://qt-project.org/doc/qtcreator-2.8/creator-deploying-android.html
http://qt-project.org/doc/qt-5.1/qtdoc/android-support.html
I had the same problem. To solve it I configured the app as it is presented in the links.
Be careful to start the device emulator from Android sdk->AVD Manager NOT from Qt Creator->AVD Manager.
And check to see if ant is correctly installed by run->cmd->ant -version.
I have created a Worklight application with the Android environment and tried running it. It is working fine in the Android Emulator but when I try to run it in an Android device it shows an error:
The application has unfortunately stopped
Can anybody help me regarding this issue?
You have probably installed ADT v22.
I have provided an answer for this problem in this question: worklight auto-generated android folder does not run on avd
This happens due to a change Google has made in this version of ADT.
It affects users of ADT v22 only. Worklight will have a built-in fix for this in Worklight v6.0.
In the meanwhile, follow these instructions (on a per-project basis):
Right-click on your generated Android project and choose
"properties"
From the left pane, choose "Java Build Path'
Tick the "Android Private Libraries" checkbox
Refresh the project / re-build the app
The app should now successfully launch in the device.
I am running windows 7, and am trying to configure android to work in titanium...
I have installed both 32 and 64 bit versions of Java... (android didn't seem to work with the 64 bit version)...
When you go to configure android from within titanium I am getting the following error...
Items required:
•Add-Ons Google APIs 7, Google APIs 8
When you then click install or update Android, Android SDK manager opens and selects what I need to install... I click accept and it downloads and installs...
However once that completes, I still have the same error when going back to titanium...
It should not be this hard... Any ideas?
I've had issues with the 64bit version. Have you tried uninstalling the 64bit versions of Java?
Also, have you run Android to update all the libraires?
I know it's an old question but in case anyone googles it like I have, this is what helped me:
make sure to install Google APIs at least for the latest Android SDK that you have installed
make sure to have Android 2.3.x installed. This is critical, Titanium Studio somehow couldn't link to my Android SDK (set outside titanium folder) even though I had half a dozen higher than 2.3 SDKs installed
restart Titanium Studio
Further more, in case this doesn't help, try clean-starting Titanium Studio, like so:
close Titanium Studio
go to your Titanium Studio installation folder (e.g. "C:\Program Files\Titanium Studio")
open TitaniumStudio.ini
copy these two lines at the beginning of the file:
-clean
true
save file and start Titanium Studio.
After succesfull operation you can remove those two lines from .ini file as they are not needed.