android: Installation Error:Unknown Failure-while running an apk file in

六眼飞鱼酱① 提交于 2019-12-10 15:58:18

问题


Yesterday I haven't got any error while using emulator but today I got this error check the image below. I have run as well as debugged many time but I am not getting the same error every time.

Error is popping up after installing the apk file. Please give the correct answer such that i can fix the emulator correctly and work on that

Now when I compile I got new error check the below image while shows

What I have to do ?


回答1:


Reboot your computer. This has always worked for me.




回答2:


I was also facing this issue, I try this and works great.

adb.exe kill-server
adb.exe start-server



回答3:


I don't exactly remember, but try to reset preferences by option in Windows tab. Or create a new emulator and try to run your program again. If above things won't work then enable debugging on your android device and connect your device and run it to see if error persist. Thanks




回答4:


If running in eclipse, Please check the emulator settings..

This happens when AVD is already configured and a new andriod project is created.

So for this.. go to Run>> Run Congurations >> Target.. Select the AVD which is already configured and an option for choosing same AVD for future projects also.

This will start an emulator and thats it.. your application is up !!!




回答5:


If You Running In Eclipse, Check Your Settings.

Run Configurations - Common - Select File In Standard Input And Output - Click

Workspace And Choose Your Project.

And Just Click Run.




回答6:


Check if the package name contains an uppercase letter,If uppercase letters are included, change them to lowercase.it worked for me




回答7:


Even I faced this issue. I used below steps for resolving the issue:

1]  adb uninstall your_app_package_name
2]  adb kill-server
3]  adb start-server

restart the emulator/device after executing above steps.

Now try to run the application. That must work for you.



来源:https://stackoverflow.com/questions/22496416/android-installation-errorunknown-failure-while-running-an-apk-file-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!