I'm running the latest Android Studio (2.3.3) on my machine, and I would like to know how to update from an Android version to another without losing apps.
I'm trying to emulate a Google Pixel XL with firmware 7.1, installed my test app, and then when I tried to change from Advance Settings my firmware version to the latest, Android O (8), I noticed that all the third party apps were deleted, and it sees my device as a new one with factory reset.
Do you have any solution for this problem? My purpose is to see if the upgrade affected my app in any way.
Related
I have a scenario to test when the app upgrades from android 11 to 12. So, I have installed the app in the emulator with android 11. After that I edited the emulator OS to android 12. When I edit the emulator and open it again, it has no apps installed in it. So, can someone suggest a way to edit the emulator without losing my app.
I recently got notified from a user running the Xiaomi Remi 4x android 7.1.2 that my app is crashing. However on my Android 8.1.0 Samsung Galaxy Note 9 it is running just fine.
I tried to therefore download the 7.1.2 SDK however I can't even find it on the SDK Manager nor the AVD Manager. Has support for 7.1.2 been rejected or why can't I seem to find it?
I'm also currently running Android Studio 3.2.1
Android version 7.1.2 is not a separate platform/API level, it is just version 7.1 plus several functionality and security patches.
See the full list of Android API levels:
https://source.android.com/setup/start/build-numbers
If your app does not work on a Xiaomi device most likely the Android version is not the problem but the adaptions Xiaomi made to Android and/or an incompatibility regarding a certain driver (e.g. graphics).
Therefore most likely even if you could get an Android 7.1.2 platform you won't be able to reproduce the error. Therefore I see three options which may be possible:
Check if Xiaomi provides own emulator images for certain devices (not very likely but who knows)
Try to get a physical Xiaomi device of the same product branch
Use an online service that provides you remote access to a physical Xiaomi device for installing your app and debugging it. Such services are also known as "device farm"
Ask the affected user to provide StackTraces and then try to understand what is going wrong (and of course StackOverflow for the problem), provide test releases to the user. Redo this loop until the problem has been solved.
I've upgraded my Google Pixel to Android 9.0/Pie.
When I try to run an application from Android studio I don't see the Google Pixel in the list, there's only a null device named FA69R0306649. When I run my application, Android studio tries to install the app but then fails.
It looks like Android Studio is not recognizing the phone anymore. It Worked perfectly fine a couple of hours ago under Oreo (8.x).
Also, if I deploy the app on google play as alpha and then download it runs perfectly under 9.0/Pie.
Any suggestions to get the run/debug working with android 9.0 phone under Android Studio (3.1.4)?
The Pixel running 9.0 requires USB 2.0 high speed.
Apparently the Pixel running Android Pie cannot talk to the PC using neither USB 3.0 nor USB 1.1 full speed nor USB 2.0 running at full speed.
I had a similar problem with my Xiaomi Mi A1. When I upgraded from Android 8.1 to 9 Android Studio would hang on "Installing application" forever.
After trying revoking USB debugging authorization and completely reenabling developer options with no success it turned out a simple restart did it.
Looks like there are multiple issues that lead to the same problem.
I had the same issue with a Xiaomi Mi A2 after upgrading to Android 9. If you are using Linux, try adding the udev permissions manually, following the steps described here. In my case, that was the only solution that worked.
Please re-enable developer options again after the OS version upgrade, the device name will appear and it will be working fine again
Install Sdk Platforms of Android 9. In Android studio Top Right besides Search Icon.Press That Icon of SDK manager and look either sdk platform is updated and installed.
A simple solution just go to your Developer option on your phone , right below the USB Debugging option it says to "install via USB" just enable it and you are all set to install an app through android studio into your 9.0 device.
I want my app to support older versions of Android, but my only Android device is of a much newer version.
Also, the emulator in the SDK is incredibly slow to launch and run.
I can't find any reliable testing environment for my app's functionality on older devices. Any hints?
Thanks.
try Remote test
or emulator is the only way.
You can build the app with limiting the SDK to use version hence conform that it will work on old device, then test it out thoroughly on your New device.
Fix some bugs and then run them on the old SDK Emulator or the remote setups.
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.