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.(Environment.java:78)

at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:419)

at android.os.Debug.(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

解决方案的尝试:

设备:福邦 锇:5.0

+0

你试图得到什么系统属性? –

+0

我不知道。我只是在设备上安装apk。 @CaspainCaldion –

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐