我将我的应用程序上传到虚拟设备时遇到了问题,如何解决? 虚拟设备:Nexus S,CPU:Intel Atom x86。我使用的是Android Studio。
Waiting for device.
Target device: emulator-5554
Uploading file
local path: D:\git\Genius\app\build\apk\app-debug-unaligned.apk
remote path: /data/local/tmp/com.vlad.genius.app
Installing com.vlad.genius.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.vlad.genius.app"
pkg: /data/local/tmp/com.vlad.genius.app
Failure [INSTALL_FAILED_DEXOPT]
我正在运行一个带有擦除用户数据的虚拟设备,但是它并没有帮助我。
在Logcat中,我看到了这一行:
05-04 16:44:49.940 1775-1775/? W/dalvikvm﹕ DexOptZ: zip archive '/data/app/com.vlad.genius.app-1.apk' does not include classes.dex
05-04 16:44:49.940 956-956/? W/installd﹕ DexInv: --- END '/data/app/com.vlad.genius.app-1.apk' --- status=0xff00, process failed
05-04 16:44:49.940 956-956/? E/installd﹕ dexopt failed on '/data/dalvik-cache/data@app@com.vlad.genius.app-1.apk@classes.dex' res = 65280