1 < a href=’ '>Rerun</ a>
完整日志是
Install failed.
Installation failed
< a href=' '>Rerun</ a>
产生这个问题是有很多原因的,具体看EventLog才是关键
出现这个问题我的EventLog是这样的:
Failed to commit install session 639684911 with command cmd package install-commit 639684911. Error: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
很明显是ndk的依赖包出问题了。确实如此,gradle配置了armeabi-v7a和x86,而jniLibs中只添加了armeabi-v7a,再引入x86的包问题解决
2 is not accessible from
我遇到的异常详情是
Caused by: java.lang.IllegalAccessException: java.lang.Class<com.fullcat.demo.b.MainActivity> is not accessible from java.lang.Class<android.app.Instrumentation>
是因为写MainActivity时候忘记加public了
3 Not allowed to bind to service Intent
在做aidl时出现的,是由于service标签没有添加
android:exported="true"