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.
Related
My smartphone is running android 5.0 and I want to run app on it. But, Android 5.0 is left out SDK platforms(in SDK Manager).
In standalone manager:
Screenshot of the error while trying to run:
There is no Android SDK for 5.0 separate from the Android SDK for Android 5.0.1. You already have the proper SDK installed, based on your screenshots.
If you observe carefully that Android Lolipop(5.0) is actually there as android 5.0.1 at api level 21. Actually Lolipop's version name is 5.0.1 so it made you confused. So Enjoy Coding..
I have Android API Levels 15,19,20,21 and Android Studio 1.0.1.
Robotium Recorder needs API 15 or higher version. Information about Robotium API support
I follow that guide from Robotium's page
and also I tried many things like those (all following steps were tested separately from each other);
I created emulators that's API level 15 and 19, Than I tried to start Robotium,It did not work.
I connected my Android phone which is API level 19,that did not work again.
I started Android Studio with administrator permission everytime.
I downloaded robotium.jar here It did not work.
I tried every method in my mind.
My minimum sdk version and target sdk version is also 19.
But when I clicked "New Robotium Test" button, immediately appears warning text that is "Please install a compatible Android API level (15 or higher)"
There is a screenshot about problem. Any advice?
You probably have two Android SDK:s installed in your computer. If you go to settings (on the left side of "New Robotium Test") you can change the SDK to be used by Robotium Recorder.
http://robotium.com/pages/user-guide-android-studio
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'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.
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.