问题描述
我通过 expo init projectname 命令创建了一个新的 react native 项目.并通过项目库中的 expo start 命令运行该项目.该项目在真实设备上运行完美,但尝试在 gennymotion 上运行时出现此错误:
I created a new react native project by expo init projectname command. and run that by expo start command in project library.this project run perfect on real device but this error comes when trying run on gennymotion:
无法在 Android 上启动项目:运行 adb 时出错:adb: failed to安装 C:UsersArash.expoandroid-apk-cacheExponent-2.12.2.apk:失败 [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: 解析失败/data/app/vmdl904453318.tmp/base.apk: AndroidManifest.xml]
Couldn't start project on Android: Error running adb: adb: failed to install C:UsersArash.expoandroid-apk-cacheExponent-2.12.2.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl904453318.tmp/base.apk: AndroidManifest.xml]
gennymotion 设备开发者模式已启用,并且 gennymotion 设置中的 adb 目录是自定义的.
gennymotion device developer mode enabled and adb directory in gennymotion settings is custom.
真的让我发疯了
推荐答案
我终于解决了问题:尝试删除 c:/users/.expo/android-apk-cache 目录.帮我修好了
Finally i solved the problem :try deleting the c:/users/.expo/android-apk-cache directory . fixed it for me
这篇关于与 expo 反应原生:在 gennymotion 问题上运行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!