2017-03-24 94 views
4

無論何時在設備上安裝應用程序時都會收到錯誤。沒有找到爲java.lang.String實現的實現android.os.SystemProperties.native_get(java.lang.String)

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 

解決方案的嘗試:

  1. 清潔工程和重建。
  2. 無效/重新啓動選項。
  3. 卸載舊的apk並嘗試重新安裝。
  4. HTC M8 Unsatisfied Link Error after 5.0.1 update關注此鏈接回答。
  5. Unable to test app after upgrading to Lollipop Follow this link answers too。

設備:福邦 鋨:5.0

+0

你試圖得到什麼系統屬性? – Remario

+0

我不知道。我只是在設備上安裝apk。 @CaspainCaldion –

回答

11

我有我的Micromax的AQ 5001採用Android 5.0同樣的問題。 Android Studio 2.3.1下的解決方案是工具 - > Android - >啓用ADB集成 - >取消選中。如果您需要在設備上成功安裝後調試項目,則可以返回此檢查。

0

在華碩Zenfone 2上,只需禁用Instant Run即可解決這個問題。

設置 - >構建,執行,部署 - >即時運行(取消選中該複選框)

我能離開亞行的整合功能。

+0

這確實讓我建立一次。我第二次嘗試錯誤就回來了。我這次做的是檢查框,我成功了。什麼? – h3dkandi

相關問題