I'm trying to run MonoDevelop on apple. I have instaled all the necessary SDK in AVD manager and i can run the simulator. I already setup in MonoDevelop->Preferences->SDK Location->Android SDK to /Developer/SDKs/android-sdk-macosx where i unpack the SDK packed from http://developer.android.com/sdk/index.html. When i try simple Hellou word demo run i get error :"The targetted Android api level cannot be found, please use the Android AVD manager to install the platforms you're targetting".
Where i can find which api lvl I'm targetting? I'm trying to run on api lvl 14.
At last i found it. I have to set the project options where is located target framework. It should correspond with the Android emulator version.
Related
I'm totally new with android development. I installed android studio today. By default, I'm getting 15 options that can be installed in sdk manager, but my net is limited, so I cannot install all of these :( Can you please suggest the most important of these to install so that preview option should work? I need to target smartphones only: no TV or wearables.
Thank you so much!
You will probably need to download the same options for 2 different API levels: You should get API 21 (or whatever API level is your target API) and whatever API you set as the minimum SDK for your app. You make these designations when you first create your project in Android Studio, or can change them in build.gradle or AndroidManifest.xml.
You will probably want the SDK Tools, SDK Build-tools, SDK Platform, Sources for Android SDK, and the Intel x86 images from both API levels your app supports - minimum SDK and target SDK.
Android Google USB Driver for sure if you want to use a device for debugging and the Android Support Library.
And if you want to use an emulator you have to download one of the Intel x86 images (for phone).
Using Eclipse, trying to create a new virtual device to test app on older Android versions, but when I go to create a new Android Virtual Device I only get one option - 4.4.2 API Level 19. How do I get other versions to show here? Last night I was a bit tired and tried to if using the SDK Manager to grab 4.0.3 SDK and Google API would work to test on older version, but it seemed to mess up Eclipse as I got an ADT needs update error (which would find no updates). So starting back from scratch and figured I'd ask instead of trial and error. Thanks!
Open the Android SD Manager, check Show: Updates/New
Select SDK Platform and ARM EABI v7a System Image (also Google APIs if you are unsing them) for all Versions you want to test and download them. You need the source of the Android-Version to create an AVD for it.
Updating your Android SDK build-tools and Android SDK Platform-tools is always recommanded because newer Android versions need a newer build tool setup.
I am new to android development, and I am trying to create an AVD for testing an app before pushing it to my phone (htc desire running android 2.3.5).
I am using the ADT bundle, and with SDK manager I have downloaded these:
4.2.2 (API 17)
4.1.2 (API 16)
2.3.3 (API 10)
2.2 (API 8)
But when trying to select target of the AVD, the only available options are API 17,16 and 8.
What is wrong?
Update:
I've already tried deleting and redownloading the API and it shows up in the android-sdk/platforms dir.
Restart eclipse after install packages i also have same problem and after restart eclipse i got all api levels in drop down list
I had the same problem because I had downloaded the sdk twice and my SDK manager kept updating first SDK while my IDE was working with the other one. SO check the preferences of your IDE and see if it points to the correct one. (in Eclipse go to windows> preferences> SDK location)
For Android 2.3.3, there will be three entries of relevance in the SDK Manager:
"SDK Platform", which for older API levels like 10 will contain the ARM emulator image
"Google APIs", which will contain an emulator image that has Google Maps in it
"Intel Atom x86 System Image", which will contain an emulator image that runs x86 opcodes instead of ARM opcodes (and, with the proper setup of your development machine, can run the emulator much faster)
If you install one or more of these, you should get API Level 10 appearing an an option for setting up an AVD.
If that does not work, you might consider editing your question and posting screenshots of your SDK Manager (specifically the 2.3.3 portion) and the AVD Manager (specifically your drop-down of available API levels).
Try updating the 2.3.3 API.
And you can also try to use BlueStacks if you wish to first test your app before trying it on your device.
Delete that api from SDK Manager and download it again.
I have implemented admob code as given in google site (http://code.google.com/mobile/ads/docs/android/fundamentals.html) as described in google site we should target android 3.2 (api-13) in eclipse IDE to work properly. now my problem is my application targeting the android version 1.6 and above, since i made build target as andoird 3.2 it expects app should run on either 3.2 emulator or any of 3.2 device. i tried even installing on my 2.2 device but it didnt work.
Please help.
Thanks
The only thing you need to do is follow their instruction:
Requirements
The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).
Using Android SDK Tool download android-13 SDK and modify your default.properties, do not change anything else like android:minSdkVersion in AndroidManifest.xml. Yes, you will get a little yellow warning message says version not match in Eclipse, just ignore it and build your application, you should be fine.
When I run KitchenSink example project on iPhone emulator everything is OK, but trying to launch for Android emulator produces errors:
[ERROR] /Users/lukasz/Android/android-sdk-mac_x86/tools/apkbuilder
[ERROR] Failed installing com.appcelerator.kitchensink: pkg: /data/local/tmp/app.apk
It happens whatever Androig API I choose (from 1.5 to 2.2 or from APIs 1.5 to APIs 2.2).
I am using Titanium Developer 1.2.1, titanium SDK 1.4.1.11
Where is the problem?
As far as I can see Android SDKs and platforms work correctly because I can successfully compile Android projects from diffrent IDE (Netbeans).
I had this error trying to deploy to android sdk version 2.3.
I found this article;
http://developer.appcelerator.com/question/51051/failed-installing-comappceleratorkitchensink-pkg-datalocaltmpappapk
Initially I tried setting the sdk in the build screen to 2.2 but that still errored. However, once I selected "APIs 2.2" it installed fine.
I had similar problems with Appcelerator. Try running Android emulator from console before you start the app in Appcelerator.
The fix is to go into the Android SDK Manager and install "Android 3.0 (API 11)". Make sure the app uses emulator "Google APIs (Android 2.3.3)" and "WVGA854". I assume there's a Titanium bug because you have to install a higher API level (3.0) than is actually used (2.3.3). Using exactly these settings, Kitchen Sink works as expected.