gpt4 book ai didi

java - Android Studio 有时无法启动首次尝试

转载 作者:行者123 更新时间:2023-12-01 11:07:18 27 4
gpt4 key购买 nike

当我更改代码并尝试启动应用程序时,有时会发生这种情况:

Installing ...
Success


Launching application: ...
DEVICE SHELL COMMAND: ...
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

除非我重建解决方案,否则应用程序不会启动 - 然后它会正常启动

这并不是那么严重,但非常烦人,因为它每 3-4 个构建就会发生一次

出了什么问题?

最佳答案

您可能拥有带有 HTC Sense 的 HTC 手机(我猜是 M8)。他们的代码中存在一个错误,有时会阻止您安装该应用程序。以下是 HTCdev FAQ 的相关问答:

Why does my debug APK sometimes fail to install or run on my device and how to recover?

HTC devices with Lollipop 5.0.0 or 5.0.1 may experience this issue and we suggest retrying the installation step for workaround. HTC will prepare the solution to address the issue on Lollipop MR1.

所以,你只能等待 Android 更新。由于 HTC 放弃推出 Lollipop MR1,您将不得不等待 Marshmallow 更新。

关于java - Android Studio 有时无法启动首次尝试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32808345/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com