i'm running my app on android 5.1 API 22. Its too old and my app doesnt work propertly. Android studio give me this error. any application I run on andoid 5.1 give me this error
i disable instant run on android studio.
i try another phone with android 5.1.
i think problem isn't into the code, but in android studio.
this is the error:
Click ("")!
I see from the description and error log, you are not able to install the app on your device. But I am not able to get exact context of the problem you are facing.
My recommendation would be:
It is because of old debug-apk cached in your android studio. I would recommend to Build -> Clean Project -> Rebuild Project and Install Apk. This way, it will clean the old apk and rebuild new one and install it in your device.
Related
I have build an application(not sign app) from my computer system after one app build that computer system android studio corrupted after android studio corrupted i used gost and install again android studio and build new version of same app with same package name but now it is showing error App not installed what i do please help me
solution 1 :Go Build > Clean Project and then try run again
solution 2 :test your app in another device
I am building an Android application in Eclipse and I am testing the app on my cell phone (Samsung Galaxy S5). When I Run As -> Android Application in the package explorer with my phone connected the Console says that it installed successfully, however, it does not pull up the application on my phone like normal. It does create an icon in all apps but when I click it a toast pops up saying 'Application not installed.' There seems to be no problem with Eclipse though because I can run this same process with another Android project and it will work just fine. I didn't do anything different with my current project. I did this process successfully with this project and it pulled up like it should before it started not installing correctly. Any thoughts?
Migrate to android studio. Google stopped supporting eclipse in android development. You may not have added launcher activity in the manifest, check it. Or it should be installation error using usb. Try to copy paste apk from your project bin folder to device and install. If doesn't work show your main class file and manifest file.
I have been working on an android app through android studio for about a month now. I recently got a new computer, and tried to open the app files on that computer. When I open it I get an error banner saying
Gradle Project Sync Failed. Basic functionality (e.g. editing, debugging) will not work properly.
When I click the try again button the error in the console reads the following:
Error:failed to find target android-21 :
C:\Users\compu\AppData\Local\Android\sdk
Install missing platform(s) and sync project
I don't have access to the computer I created this project on. Is there a simple way to fix this?
Try launching SDK Manager from AndroidStudio's menu icon then install Android 21 packages.
You need to download android-21 api
go to android sdk manager and download api 21
This is because you might be building a project say Android 5.1 , but you don't have the required SDK i.e. API 21.
Go to your SDK manager and check if you have the required SDK downloaded. For safety download API 21, and 22 and then create the program again and see if you still get the error
or change the target from settings which is available at yours machine.
Also where exactly have you put the SDK bundle folder the one you downloaded from Android website? On your desktop?
Few weeks ago I finished develop a new app in android studio.
I moved the project folder into a hard-disk, formated my computer and download android studio again.
I have opened the project and run it and it work perfectly, but when I do some changes in the code and run it again, its just run the old version and not the updated. No matter what I edit in the code, its does not affect the app.
What can I do?
Are you emulating on your computer or the actual device? If you delete the app off the device and run again maybe that will launch the new version. It seems that android studio is running your old project so somewhere in the run configurations you need to make sure that android studio launches the most recent activity file.
I am Eclipse user and developed android application easily on it. But recently when i saw android studio came and offered by android website i thought to give it a shot since it looks very promising. I have downloaded the android studio in my D drive while my previous SDKS and eclipse is installed in C drive C:\NV_ANDROIDPACK\android-sdk-windows\platforms ( I have used Nividea tegra for whole package in past)..
Now the problem is the android studio has downloaded android SDK 4.2.3 by default in D drive while my other previous sdks are in C drive C:\NV_ANDROIDPACK\android-sdk-windows\platforms.
Now i am trying to run android studio with my previous list of sdks and devices. To test this i have changed the project structure from the Android studio as well as modules and directed to the C:\NV_ANDROIDPACK\android-sdk-windows. Now the AVD manager and SDK manager are configured fine and i can see my installed sdk list and can create virtual devices.
But when i run this it gives me error Cannot load AVD list Error parsing C:\NV_ANDROIDPACK\android-sdk-windows\tools\lib\devices.xml . When i opened the xml file for the newer SDK i found some new xml tags has been added so might be this error but not sure how to solve it.
Is there any good way to have both of the IDE with single SDK of android?
This was happening due to the older version in the existing sdk of the Andorid SDK tools , which can be update with new revisions. After that the error is gone and now able to run the emulator ...