Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTC M8 Unsatisfied Link Error after 5.0.1 update

When trying to push an app to my device using Android studio, I'm getting the below log readout in AS about 80% of the time. Any clues?

Waiting for device. Target device: htc-htc_one_m8-FA43NWM07298 Uploading file local path: /Users/Pete/Development/github/myApp/app/build/outputs/apk/myApp_debug.apk remote path: /data/local/tmp/com.my.app Installing com.my.app DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.my.app" 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 com.htc.customization.HtcCustomizationManager.<init>(HtcCustomizationManager.java:65) at com.htc.customization.HtcCustomizationManager.<clinit>(HtcCustomizationManager.java:60) at android.os.Environment$UserEnvironment.getCustomizationReader(Environment.java:523) at android.os.Environment$UserEnvironment.isDynamicSwitchSupported(Environment.java:534) at android.os.Environment$UserEnvironment.<init>(Environment.java:222) at android.os.Environment.initForCurrentUser(Environment.java:142) at android.os.Environment.<clinit>(Environment.java:136) at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:726) 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:215) at android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:106) at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171) Aborted 
like image 799
Psest328 Avatar asked Mar 03 '15 19:03

Psest328


2 Answers

I am encountering the same problem. Wasn't able to solve it. But my terminal is always open and every time it happens I just reinstall with adb to avoid the Android Studio recompile time:

.../sdk/platform-tools/adb install -r .../build/outputs/apk/app-debug.apk 

And usually it works. If it fails again, just run this command again (UP ARROW is your friend).

like image 192
Ariel Cabib Avatar answered Sep 23 '22 08:09

Ariel Cabib


It happens on Lollipop 5.0.2 on the M7 as well. I've found that if you kill the app before deploying, it works out most of the time, and if you have the app open (or running on the background) it will fail a lot, with that error. And it is frustrating because sometimes after that failed, the IDE issues the command for starting the Activity and you see it on your phone so you assume everything went alright, but you're just seeing the last version started.

I've not been able to fix the problem, as I said killing the app from the task manager helps. I've installed CyanogenMod 12 (lollipop as well) on my device as a dual-boot since, and the issue doesn't occur there, so I'm pretty sure it is HTC's fault. I use CM12 now for development since it was costing me too much time :/.

like image 21
pedronveloso Avatar answered Sep 23 '22 08:09

pedronveloso