英文:
Unknown error in android studio while installing the debug apk
问题
我是Android Studio的初学者,对于写错和语法错误我深感抱歉。在尝试安装一个电子商务应用时,我遇到了这个错误,尽管我试图在网上搜索相关信息,但仍然找不到解决方法。请问您能帮我解释一下这个错误的原因吗?在之前的项目中,我使用了Session Manager进行身份验证,但在遇到这个问题后我尝试切换到了Firebase。请提供任何相关的链接。
10/01 13:04:25: 在Micromax Micromax Q391上启动'app'应用。
安装未成功。
无法安装该应用。
> APK列表:[0]
> 'D:\SearchLocally\SerchLocally\app\build\outputs\apk\debug\app-debug.apk'
> 安装失败原因:'pm install-create -r -t -S 9779378'
> 返回错误信息:'未知错误:java.lang.UnsatisfiedLinkError: 未找到java.lang.String的实现
> android.os.SystemProperties.native_get(java.lang.String)(尝试过
> Java_android_os_SystemProperties_native_1get 和
> Java_android_os_SystemProperties_native_1get__Ljava_lang_String_2)位于
> android.os.SystemProperties.native_get(本机方法)位于
> android.os.SystemProperties.get(SystemProperties.java:52)位于
> android.os.Environment.getCanonicalPathOrNull(Environment.java:832)位于
> android.os.Environment.<clinit>(Environment.java:78)位于
> android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:419)位于
> android.os.Debug.<clinit>(Debug.java:96)位于
> android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:164)位于
> android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:91)位于
> org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)位于
> java.lang.UnsatisfiedLinkError: android.os.Debug位于
> android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:176)位于
> android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:93)位于
> org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)位于
> java.lang.UnsatisfiedLinkError: android.os.Debug位于
> android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:187)位于
> android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:88)位于
> org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)''
> 重试
英文:
I'm a beginner in Android studio, and I beg pardon for and writing errors. While trying an ecommerce app to install, I'm getting this error, however I tried searching web for the same, yet could not find it. Can you please help me what this error is about? Earlier this project used Session manager to authenticate, I tried to use Firebase when I faced this issue. Please post any related link.
10/01 13:04:25: Launching 'app' on Micromax Micromax Q391.
Installation did not succeed.
The application could not be installed.
> List of apks: [0]
> 'D:\SearchLocally\SerchLocally\app\build\outputs\apk\debug\app-debug.apk'
> Installation failed due to: ''pm install-create -r -t -S 9779378'
> returns error 'Unknown failure: 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)''
> Retry
答案1
得分: -1
禁用开发选项中的MIUI优化将起作用:
设置 - 开发人员选项 - MIUI优化
禁用它,然后会要求重新启动设备,之后可以安装该应用。
英文:
Disabling MIUI optimization from developed options will work:
Settings - Developer options - MIUI optimization
Disable it and it will ask to reboot the device, after that the app can be installed
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论