开发者

Error while Installing Android app on Android virtual device

I have created a small and simple android app. I tried installing it on an actual android device. But because it won't install, I created an AVD resembling my phone. I tried copying and installing app on that AVD and it still says that error. "Application xxx could not be installed on this phone".

Before I tried installing my app on the phone 开发者_如何学Goor AVD I following steps: 1. Exported an unsigned copy of application onto my hard-drive. 2. User jarsigner to sign the app 3. Verified with jarsigner that my app is signed properly. 4. Used zipalign to optimize the app resources.

I do not have an icon assigned to myapp but mandatory properties like version etc. have been specified properly.

I had initially developed app using 2.1 version but because of compatability issues with my phone I reverted code to compile on 1.5 and it still doesn't get installed either on AVD or my phone.

My AVD is on 2.1 though and code is compiled with 1.5.

Is there a place where I can see the logs as to why app is not getting installed. It would be really helpful.

Cheers


This can happen if you have a Debug version installed on the device already (from a USB debug session). Either do adb -d uninstall com.example.yourapp or uninstall in the Preferences->Applications screen on the phone itself.


Try using adb install to see if you get an error.

adb logcat will give you the logs from your device (phone or emulator) so you might find a stacktrace there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜