Java.lang.UnsatisfiedLinkError: No implementation found for boolean android.os.SystemProperties.native_get_boolean (java.lang.String, boolean)
I'm trying to resolve the official Android tutorial, but when I do some of the changes requested by the Android Hello World tutorial, I get this error:
Launching application: com.example.antonio.myapplication3/com.example.antonio.myapplication3.MainActivity.
DEVICE SHELL COMMAND: am start -n "com.example.antonio.myapplication3/com.example.antonio.myapplication3.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
java.lang.UnsatisfiedLinkError: No implementation found for boolean android.os.SystemProperties.native_get_boolean(java.lang.String, boolean) (tried Java_android_os_SystemProperties_native_1get_1boolean and Java_android_os_SystemProperties_native_1get_1boolean__Ljava_lang_String_2Z)
at android.os.SystemProperties.native_get_boolean(Native Method)
at android.os.SystemProperties.getBoolean(SystemProperties.java:116)
at android.text.TextUtils.<clinit>(TextUtils.java:1888)
at android.os.Environment$UserEnvironment.<init>(Environment.java:151)
at android.os.Environment.initForCurrentUser(Environment.java:126)
at android.os.Environment.<clinit>(Environment.java:120)
at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:413)
at android.os.Debug.<clinit>(Debug.java:98)
at android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:146)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:90)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:158)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:92)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:189)
at android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:88)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
Aborted
Please note that this error only occurs when I launch the app on my real phone. If I try to run it on AVD everything works fine.
I created a simple empty project in AndroidStudio and I made the following changes ...
The only changes I made to the project were:
-
Create "colors.xml" in value catalog
<color name="myOrange">#ffff6e11</color>
-
Create "themes.xml" in values directory
<!-- the theme applied to the application or activity --> <style name="CustomActionBarTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <!-- ActionBar styles --> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> <item name="android:background">@color/myOrange</item> </style>
-
Change the theme to "android_manifest.xml"
android: theme = "@ style / CustomActionBarTheme">
These changes were made to an empty project created in Android Studio.
My phone is a BQ Aquaris E5 HD and I am using Android Studio.
I appreciate your attention.
source to share
No one has answered this question yet
Check out similar questions: