修改lib_voice里VoiceManager.kt中的id,key,SECRET出错
来源:5-7 语义理解接口-1
LHgreenbird
2022-02-12
问题描述:
将lib_voice里VoiceManager.kt中的id,key,SECRET都修改成自己创建的百度app应用对应的id,key,SECRET,运行结果如下:
测试结果:
【Event log】2022.2.10
12:54 Error
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NOT_APK
【Run】
02/10 12:54:34: Launching ‘app’ on emulator-5554.
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NOT_APK
List of apks:
[0] 'F:\AndroidstudioProjects\aivoiceapp\app\build\outputs\apk\debug\app-debug.apk’
Installation failed due to: 'Failed to commit install session 765064920 with command pm install-commit 765064920. Error: INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl765064920.tmp/0_app-debug
at java.lang.System.exit(System.java:638)
at com.android.commands.pm.Pm.main(Pm.java:109)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)'
Retry
鉴权错误修改key,不是在lib-vioce里的VoiceMnager修改的吗?
1回答
-
刘某人
2022-02-17
INSTALL_PARSE_FAILED_NOT_APK 这是编译构建的错误,跟代码没关系的,可以尝试删除 app/build 文件夹重新构建
10
相似问题