my app does not run on emulator - android

I have an app that runs on tablet devices and emulator Android 3.2 API Level 13 successfully but it does not run on emulator Android 4.2 API Level 17
Why does this happen and this emulator is not shown in compatible devices?
I should mention that I am using Fragment and ViewPager in my application.
The build target of my project is Android 4.2 API Level 17
Update:
The problem solved. I deleted and created the emulator again!!! :-?

run adb logcat right before launching the app and you will get at least a clue ...

Try this in your AndroidManifest: uses-sdk android:minSdkVersion=YourAPILevelTarget

Related

Android native java8 support for API 16 4.1.2

I'm currently building an app which has target and source compatibility set to java 1.8, compiledSdkVersion 27, targetSdkVersion 27 and minSdkVersion 16.
Whenever I run my app on newer devices, everything works just fine. But I recently got a hold of old crappy lg device (LG-E430) which has android 4.1.2 (API16) and if I try to run the app on it I get the following error:
java.lang.NoClassDefFoundError: com.sample.app.-$$Lambda$Application$UEhM22H-x38DdLAimT-WuD_uUWc
From android documentation I see that lamdas are supported on all android versions. But exception says otherwise.
How to solve this issue?
See You Have Build Virtual Device On Android Studio And Then Try To Run Your Project I think it will work. If It Still Not Works Then open Build.gradle and sync your project and then Run it then it will work

App get force stop run on lollipop version

I am an android beginner, I have developed one app, it was working kitkat version, but it's not supported in lollipop version (nexus 5). When I run the app in nexus 5 the app get force stop. This problem arrives development side or lollipop side Any one can help me
For your reference I have used android version as below
Min sdk is 14
Taget Sdk is 21
It may be because of some libraries you have used.I got the same issue when I was having simonvtmenudrawer in my app which was not supported in lolipop.I replaced the same and it is now working fine.

Eclipse: keep getting "ERROR: Application requires API version 15. Device API version is 14 (Android 4.0.2)."

I've been testing an Android app on a device that had API version 15 installed. I now have to switch to a different device (a Samsung Galaxy Nexus, if it matters) that has version 14. Even though I changed "project build target" from Google APIs 15 to 14, I still get the following message when I try to execute the app on the new device:
ERROR: Application requires API version 15. Device API version is 14 (Android 4.0.2).
Cleaning all projects did not help. Restarting Eclipse did not help. I created a simple new test app with target=14 and it worked fine.
Why changes to the old project are not taking effect?
Thanks!
You have to change the minSdkVersion in your AndrodManifest.xml. See this post and the blog entry it is based on for details.

How do I emulate a HoneyComb-compatible app on older emulators?

I began the process of making one of my apps Honeycomb-friendly.
I started by changing the project's target build to version 11, and edited to AndroidManifest.xml to use:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="11" />
These are the only changes I made so far. I am able to test it perfectly on my Honeycomb tablet device.
However, I cannot get Eclipse to launch this app in an older emulator (e.g. version 9). Technically speaking, the app should run in older android versions, so what can I do to test this app for older devices?
Or am I doing something else wrong?
I'm by no means an expert on this front but setting the minSdkVersion different from the targetSdkVersion doesn't make the app automatically use a different API level based on the device. See this:
Android Min SDK Version vs. Target SDK Version
and this:
http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html
I suspect that because your application is using level 11 apis it won't run on a device that is of a previous API level.
This seems to be some sort of bug. When my 3.1 device is plugged into my PC, Eclipse/Android won't let me launch a new emulator that's < 3.0.
I worked around this by launching the emulator before I plug in my device, and then it has no problems deploying the app to both of the running devices.

Contacts and settings does not open on emulator

I installed android sdk 3.1 and 2.3.3 And i created emulator using both of them.
But when i run 3.1(api level 12) emulator it doesn't work some features(applications) like contact,settings but in 2.3.3(api level 1) it works well.
I don't know why.So i re-installed them few times and the result was same.After i asked this about others and they had the same experience.can anyone explain why this happened?
Dear the aplication u have been running in api 12 is not compatible with it... it must run on lower api. Application execution differs in api levels.
u must try to run ur application in api 1 if u have developed application in android 2.3.3.

Categories

Resources