I'm developing a taxi order application for Android. Two days ago I got stuck with a problem that I couldn't use Internet on emulator - it refused to work. The cause was in network settings in Windows, but I learned it later. That time I just tried to reinstall Android SDK hoping everyrhing will be repaired. Before that I was working with revision 16. Now I installed revision 20. My Eclipse ADT plugin automatically updated to support newer SDK version.
Now I work without real device and test everything on Android emulator. Today I sent the newest release of my app to my chief but I refused to be installed. The minimal SDK version is 8 (2.2), and the chief has an Android 2.3 device. He tried to install this app onto other two devices. Another 2.3 device also declined apk, but a 2.2 device accepted it. What's the problem? Note that I didn't set max SDK version. I also tried installing and running my application an a 2.3 emulator, everything was fine.
P.S. Problem solved, see Tim's suggestion below.
If he had an old version installed have him try uninstalling that first. My guess is that you got a new debug key and it is failing install due to different keys.
Related
I have a question about running an app through the emulator on android studio.
My emulator device is able to turn on, but when running the app, install never completes so the app times out. I have tried invalidating cache and restarting, and I have installed the sdk platforms that are the same as the emulators and project, but these changes did not work. My computer cannot install emulator hypervisor driver for AMD processors or intel x86 Emulator accelerator, but I don't think it is necessary for the app to run since my emulator can turn on, right? also, any app has never successfully run on android studio.
The is no code other than the hello world that comes up automatically. This is an empty project with a minimum sdk of api: android 4.1. The device I am using is a pixel 2 with an api of 22. (size on disk 3.5 GB) for tools, I have android SDK build-tools 33, android emulator (31.3.10), and android sdk platform- tools (33.0.3) installed.
I have tried every forum that has the same issue as me but if you think there is one that can help me, please share it thanks.
Android Emulators aren't always the best so expect random failures. This is what I would try:
Make sure the app compiles properly (make sure you see BUILD SUCCESSFUL in your bottom "Build" Tab in Android Studio)
Make sure you have updated Android Studio and Android Emulator, Android Build Tools, SDKs etc.
Create and use a device with a higher API version. Ideally one with Play Store.
Depending on your development machine you might want to try a different architecture (ABI). Try x86 or x86_64 instead of what you've already tried.
In rare cases your existing emulator images get corrupted. Uninstall them in your SDK manager (Show Package Details) and install them again.
If possible try running the app on a real device (follow online instructions to enable USB debugging etc.) to verify the emulator is the problem.
I'm having trouble getting emulators running Android versions prior to API 19 (including 19) to connect to the internet. Emulators running newer versions connect just fine. There's no connection at all, it's not that the app can't access the internet, nothing in the device can. Mobile data is turned on and the 4G (or 3G) icon is showing.
I have tried different devices, but the problem seems to be the Android version itself. I also tried deleting and re-creating the device. Uninstalling and reinstalling the emulator, reinstalling Android studio, reinstalling SDK and tried forcing 3G to no avail too.
Sorry if I'm not being specific enough or providing any more info than this, but I'm not able to do much more and I haven't found anything online that helps me.
Is there any reason for this?
Thanks in advance
Android Studio build
SDK
I had the same issue, so I deleted emulator, than went to sdk manager and
updated sdk platform fot 19 api
updated and installed sdk tools as below:
installed sdk tools
I am using android studio 2.3. After I updated my android sdk to the latest version, I noticed that my emulator stopped working. When I try to start the emulator it says "Waiting for target device to come online". But it goes nowhere and the emulator never shows up. After reading some posts, I installed some extra libraries Intel and ARM apis for each version of Android like 5.0, 6.0 but still that did not work. Restarted my machine, IDE, invalidated caches but that did not help.
Try rebuilding your emulator. I had a similar issue when I updated to an earlier version (2.2.2), and removing and rebuilding my emulators did the trick after installing the appropriate apis and packages. Hope this helps.
I have written a number of simple apps for Android, but have not posted any on Android Market / Google Play for about a year or two. I recently wrote a very simple app but when I tried to post it to Google Play I get the Error:
You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.
Google must have changed something while I was napping.
After a little research I found that I needed to load the latest version of Eclipse as the Export/Signing tool included in the newer versions also does this zip aligning.
This was a mistake I think.
First I tried to get the update function on the Eclipse SDK Version: 3.6.2 I had been using but this did not work. In frustration I simply loaded the latest version of the SDK off the Android site. This worked fine but the Emulator that comes with it is far too slow on my computer (MacBook Pro OS 10.6.8, 2.4 GHz Intel Core 2 Duo, 2 GB 667 MHz DDR2 SDRAM). I tried a number of suggestions on getting a faster Emulator, none of which worked.
Since the emulator on my 3.6.2 version of Eclipse worked just fine for the simple apps I write I said well I will just use that version of Eclipse and zip align my app manually. Unfortunately, now ALL my apps on the older version of Eclipse have errors in them preventing them from working. I keep on getting the error:
[2014-05-18 22:53:56 - Focal Length] Unable to resolve target 'android-19'
This is understandable as I only have API 17 installed on this older version of Eclipse (that is as high as I could load on this version). I thought, fine I will just uninstall the latest version of Eclipse then the old one will work fine. No luck, when I uninstall the latest version of Eclipse and even use an app cleaner on my Mac I still get the same error:
[2014-05-18 22:53:56 - Focal Length] Unable to resolve target 'android-19'
Somewhere in my old Eclipse there is a pointer asking for API 19 which does not exist on my old version of Eclipse.
I would like to simply use my old version of Eclipse and zip align my app manually as outlined in on the Android site.
Can someone help me in getting my old version of Eclipse SDK Version: 3.6.2 up and running again?
either change your android target to lower version. or open up android sdk manger and install android 4.4.2 sdk.
Never found solution, tried everything, numerous suggestions from stack overflow. I could never get my apps to work on my old version of Eclipse no matter what. New version of Eclipse still too slow of Emulator. Tried running apps directly off my phone, Samsung Galaxy S3 but could not ever get Eclipse to recognize it. Tried loading and running Samsung Kies no help. Only way I could modify app was to open it on latest version of eclipse, run it, kill the run, and then email the apk file to my phone. This worked but the text was then all off. Tried to correct that also and now the new version of Eclipse has nothing but errors in it.
Final solution? Back up my Workspace files and uninstall all versions of Eclipse on my Mac along with any remnants I can find.
I will then reload the latest version of Eclipse and manually enter the code in for my app and see if that works.
Just a work of experience from an 54 year old chemical engineer that has designed almost any type of chemical plant there is (and used punch cards in college!). Even though most chemical plants are computer controlled there is always a manual OFF switch so that operators at 3 AM in the morning can shut things down safely without having to look for the "bug" in the program.
I don't understand...
In my office I installed Eclipse + Android SDK (API 16) + ADT plugin to develop my own app. When I installed it on my Galaxy Tab and Galaxy Nexus nothing happened and it worked fine. But when I installed all of this on my laptop in my house and imported the eclipse project to installed it again on my devices ADT says that message: "No compatible targets were found". Despite it's the same project, i didn't change a thing and the software is the same...
What can be causing this issue? Any ideas?
I have a meeting this wednesday to start selling the app and it would be great if someone could answer me before that day!! xD
Thanks!!
Are the ADB drivers for the phone working/installed on the laptop?
if your using windows check the device manager.
It sounds like you don't have the proper version of the SDK installed on your Eclipse. You need to make sure you have used the 'SDK Manager' to install the proper Android version, that your build is compiling to what you expect (this is set in the AndroidManifest.xml), and that your emulator or device is targeting the version of the OS you are expecting.
My quess is you don't have the proper Android SDK downloaded.