找不到java.lang.String android.os.SystemProperties.native_get(java.lang.String)的实现 [英] No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String)
本文介绍了找不到java.lang.String android.os.SystemProperties.native_get(java.lang.String)的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我在设备上安装应用程序时都会收到错误消息.
Getting the error whenever I install the app on the device.
03/24 18:56:08: Launching app
$ adb push /home/itstym/AndroidStudioProjects/hlthee/app/build/outputs/apk/app-debug.apk /data/local/tmp/user.com.hlthee
$ adb shell pm install -r "/data/local/tmp/user.com.hlthee"
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties_native_1get__Ljava_lang_String_2)
at android.os.SystemProperties.native_get(Native Method)
at android.os.SystemProperties.get(SystemProperties.java:52)
at android.os.Environment.getCanonicalPathOrNull(Environment.java:832)
at android.os.Environment.<clinit>(Environment.java:78)
at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:419)
at android.os.Debug.<clinit>(Debug.java:96)
at android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:164)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:91)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:176)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:93)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:187)
at android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:88)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
Aborted
$ adb shell am start -n "user.com.hlthee/user.com.hlthee.WelcomeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "user.com.hlthee/user.com.hlthee.WelcomeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=user.com.hlthee/.WelcomeActivity }
Error type 3
Error: Activity class {user.com.hlthee/user.com.hlthee.WelcomeActivity} does not exist.
Error while Launching activity
尝试过的解决方案:
- 清理项目并重建.
- 无效/重新启动选项.
- 卸载旧的APK,然后尝试重新安装.
- 5.0.1之后的HTC M8不满意的链接错误更新跟随此链接答案.
- 升级到Lollipop后无法测试应用这个链接也回答.
- Clean the project and rebuild.
- Invalidate/Restart option.
- Uninstall the old apk and tried to install again.
- HTC M8 Unsatisfied Link Error after 5.0.1 update followed this link answer.
- Unable to test app after upgrading to Lollipop Followed this links answer too.
设备:Micromax 操作系统:5.0
Device: Micromax Os: 5.0
推荐答案
在装有Android 5.0的Micromax AQ 5001上,我遇到了同样的问题. Android Studio 2.3.1下的解决方案是工具-> Android->启用ADB集成->取消选中.如果在设备上成功安装后需要调试项目,则可以返回此检查.
I have the same problem on my Micromax AQ 5001 with Android 5.0. The solution under Android Studio 2.3.1 is Tools -> Android -> Enable ADB integration -> uncheck. You can return this check back if you need to debug your project after successful installation on device.
这篇关于找不到java.lang.String android.os.SystemProperties.native_get(java.lang.String)的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文