The APK failed to install. Error:Could not parse error string.

 

問題一:android

The APK failed to install.
Error:Could not parse error string.架構

今天拖拽本身的apk到模擬器上運行,報上述錯誤。ide

搜索解決方案。。gradle

https://blog.csdn.net/zhongchongwen_001/article/details/82841884ui

模擬器CPU是X86-64架構,而apk只支持ARM架構url

 

問題二:spa

 


Device supports x86,but Apk only supports armeabi-v7a.net

首先了解了CPU架構:
armeabi :第5代 ARM v5TE,使用軟件浮點運算,兼容全部ARM設備,通用性強,速度慢
armeabi-v7a: 第7代 ARM v7,使用硬件浮點運算,具備高級擴展功能
arm64-v8a :第8代,64位,包含AArch3二、AArch64兩個執行狀態對應3二、64bit
x86: intel 32位,通常用於平板
x86_64: intel 64位,通常用於平板
mips: RISC處理器 3d

mips64:RISC處理器orm

咱們能夠在build.gradle中有ndk這段代碼,只要在後面加上「x86」,再sync now一下,就發現能夠運行了。

ndk {
abiFilters "armeabi-v7a","x86"
}

 

---------------------
做者:暗夜無聲
來源:CSDN
原文:https://blog.csdn.net/lwx675652056/article/details/79727004
版權聲明:本文爲博主原創文章,轉載請附上博文連接!

https://blog.csdn.net/dj0379/article/details/52082071

 

要在Android Studio模擬器上跑項目的話,就須要引入"x86",可是又會讓打包的項目變大,感受都不合適。找一款,支持各個版本的模擬器吧。

 

讓x86的android模擬器能模擬arm架構系統

網上介紹共計三種模擬器比較經常使用,分別是bluestacks、andy和Genymotion,前者支持ARM架構,中者支持遠程控制,後者啓動速度快,各有優缺點。

若是要用genymotion模擬arm的話,仍是放棄吧,直接用bluestacks

https://blog.csdn.net/dj0379/article/details/52082071

 

 

後來發現了

發現了在這個界面能夠選擇arm的模擬器。

 

2018年11月17日10:00:02

 昨天下午啓動本身新建的模擬器:

提示下面彈框:

 

 

Consider using an x86 system image on an x86
host for better emulation performance.

Runnint an x86 based Android Virtual Device(AVD)
is 10x faster,

We strongly recommend creating a new AVD.

相關文章
相關標籤/搜索