android app can't be uninstalled. it keeps crashing the app manager - java

I developed a quiz app for a project using Android Studio. The app worked fine and did what i expected it to do.
Recently i tried to update the data base so i needed to uninstall the app, but it keep crashing the default app manager on my Samsung Galaxy S6 phone.
Any ideas about what might be the reason for the crashing and not letting me to uninstall it??

You can try to use adb to install/uninstall apps
adb uninstall <Your package name here>
Note:
You have to run the above in command prompt
You need adb installed on your machine
and set %PATH% variable before trying
If app manager is crashing - it is perhaps not connected with your app - something else must be an issue:
Try to restart your phone (if still not try next option)
Try to reset your phone (Long press volume down and power button)

Related

qemu-system-x86_64.exe is not responding

I just installed Android Studio and I've been trying to figure out for the past 3 hours why it is that when I try to run my newly created project on a emulated phone it doesn't work. It's not even that the program doesn't work, it's that it freezes the moment I open it. I've tried uninstalling/reinstalling HAXM, SDK's for the phone, and recreating the phone / wiping the data on the phone and retrying, and nothing's worked so far. I'm wondering if anyone else has experienced this problem or knows what causes it? Please see picture to see what the problem is. P.S I'm using Android Studio on Windows. My system is beefy and should be able to run the emulator fine. I have Virtualization Enabled too.
This help me in getting it to work: switch off HyperV on Windows:
open Powershell as Administrator and run:
bcdedit /set hypervisorlaunchtype off
Reboot afterwards. Alternatively, run 'optionalfeatures' and select the HyperVisor platform to remove. To test if it really worked, run:
emulator.exe -verbose -avd <YOUR AVD NAME>
You can list the AVDs with 'emulator.exe -list-avds'.
Not my credits, but those of 'viet-quocnguyen'. See https://github.com/microsoft/WSL/issues/6471#issuecomment-770417782

Android Studio emulator on Mac not working [duplicate]

Couldn't use x86 emulators, AVD manager shows warning "/dev/kvm is not found" and telling me to edit BIOS security setting to enable VT-x.
Re-installing HAXM resolved my problem
Steps:
Make sure SDK Manager -> Extras -> Intel x86 Emulator Accelerator (HAXM installer) is installed
Navigate to <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/
Run ./HAXM\ installation -u
Run ./HAXM\ installation
For MacOS users running Android Studio, when you get this error then try these steps to open up your privacy settings.
You can also follow the answer from Divakar on this post here - /dev/kvm not found on mac
Thank you Apple for pushing me with your dumb*** app review rules from iOS to android development
You just need to "start" the HAXM. You can do this following this steps:
Open the cmd.
Type sc query intelhaxm, click enter and check the STATE.
If state is 1 STOPED, type sc start intelhaxm and click enter to start the HAXM.
Check the STATE again and it should be 4 RUNNING now.
Finally, you are now able to create and use your AVD using a x86 emulator.
Alternatively, when you want to stop the HAXM you should type sc stop intelhaxm.
Hope this helps y'all.
I had a similar message in the emulators area in Android Studio 2.1.
My emulator for a certain API (think 21) worked initially fine and was fully accelerated, then installed a couple of other images (Nougat x86/64 etc) and suddenly started seeing /dev/kvm not found and NO emulator would boot up.
In My Case, re-installing HAXM sadly did not help, but rebooting my MAC did (go figure).
But, I also noted that if you have installed an emulator image but not the related SDK for the API (which makes sense), then you get a similar pop-up when starting the emulator, which makes you think it may be a HAXM / KVM issue, which its not.
Hope this helps someone.
Update Bios Setting
Power on the system and press[delete] key to enter BIOS [EZ Mode]
Press [F7] key to enter BIOS [Advance Mode] as below picture:
(If press [delete] key to enter [Advanced Mode] directly and then no need to press [F7] key any more)
Select [Advanced] page and click [CPU Configuration] item
Select [Intel(VMX) Virtualization Technology] item and set to [Enabled]
Press [F10] key and click [OK] ,the system will auto reboot
On Mac OS, After installing make sure to allow Intel HAXM under "Security & Privacy".
This was the only way I was able to run the Android Emulator :)
Reinstalling and restarting did not work for me. Instead, I had to start my Mac in Recovery Mode (restart & press ⌘+R until Apple logo appears). Then open terminal from Utilities drop down menu. Type and run:
csrutil enable --without kext
You will get some warnings and instruction to restart for the changes to take effect. Restart and the emulator will run this time.
Reference:
https://blog.celogeek.com/201708/672/android-studio-emulator-haxm-on-mac-os-high-serria-10-13/
Just go to terminal and type
sudo chown 777 -R /dev/kvm,
then type
sudo chmod 777 -R /dev/kvm.
And restart android studio
And that's it..
In some case it may happened that for every start of android studio you need to type this commands First and then start android studio.
I couldn't install mine because I had HyperV enabled on my machine. Removed it and I was able to install the HAXM from the following link:
https://github.com/intel/haxm
Either your CPU does not support virtualization, or it is disabled in the bios. Go into your bios and see if you can find a setting to enable it.
I tried reinstalling HAXM a few times but kept getting the errors.
In my case I actually had to go into Bios Settings and enable Virtualization.
It worked for me. Just in case this helps anyone.

installation failed with message install_failed_uid_changed

I am running android app from android studio but failed to installed. Although I have uninstalled the app from mobile and have enough memory space in the mobile.
. Please What should I do. I have attached the alert .
Thanks
If your device is rooted you can try deleting your application's data from the device. To do so, delete /data/data/[app package name] folder or run adb shell rm /data/data/<app-package-name>. Then, try to install your app again.
For non-rooted device:
Change the ApplicationId of the app. Refer this link to change ApplicationId.
Build and install the app. The app will install successfully because it is treated as the new app.
Now uninstall this app which will clear the data.
Now change the ApplicationId to the previous one.
Build and install. It will install.
For rooted device:
Just delete
"/data/data/your.package.name"
on your device

Cannot be root on Android Emulator

I'm currently trying to develop an application for Android devices on an Android Emulator. I installed Android 4.3 on a VMWare Workstation, on a Windows 10 OS.
I want to test the app I'm developping on the Android emulator, so I have to create a bridge connection between my phyisical computer where I develop the aps, and the emulator, where I can test it. But when I try to create this bridge, I have to change settings and to be root of the emulator. When I try to do a 'su' command, I have the following error :
'su : uid 10000 not allowed to su'
I tried to follow this tutorial to give me the root acces of the emulator, but it didn't worked for me. The best answer is to execute this commands :
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
How to get root access on Android emulator?
More over, When I did the installation of the Android Emulator, I've done the installation specifying the read-write option.
It is not working for me, because when I try the first row, I obtain this message :
ADB error : 'device not found'
Such as it is described in this link :
How to fix: Error device not found with ADB.exe
But the answer exists for a phone, and not for an emulator. Do you know how to fix it ? How can I be root, and how can I found the 'device not found' ?
Here are the different parameters of the VM
su stands for super users which is available only on rooted device. it is more like using android application with administrator privilege.Try using BLuestacks rooted version.

Android Device Not Detecting In Eclipse

I am trying to run my application on my Device from the Eclipse In windows.But my device is not detecting there in the eclipse.
My device driver is updated. In My device, I turned on "USB debugging mode" in Settings->Application->Development and also "Allow installation of non-market Applications" in Settings->Application->Development. And in Eclipse Target tab, selected "Always prompt to select device". My ProjectBuildTarget is not newer than my device's version. And tried adb kill-server also.
When i run adb devices it shows nothing in my command prompt.
How do I get Eclipse to load my app to my phone instead of my AVD?
When i tried it in my Mac machine It works perfectly..
Any solutions? Please suggest me..
Please try the following:
Go to settings in your phone
Go to storage menu
Select connect as MTP
Worked for me!
If you are using a MAC OS.... no need to install the Driver
But for Windows, try this http://developer.android.com/training/basics/firstapp/running-app.html#RealDevice
Debugging to phone
Please see the link above, the process is defined there from google.
close you AVD if its running, then re-plug your Mobile device, check in your phone USB debugging notification should come.
try deleting your AVD and leave your phone connected, then restart your IDE. Make sure you've downloaded the OEM USB drivers. If it still doesn't appear on the list, hit refresh then just run your app.

Categories

Resources