应对本地运行的android问题
要在现有项目上运行android,我遇到以下错误 java.lang.NullPointerException(无错误消息) 但如果我删除build.gradle下面的代码应对本地运行的android问题,android,react-native,Android,React Native,要在现有项目上运行android,我遇到以下错误 java.lang.NullPointerException(无错误消息) 但如果我删除build.gradle下面的代码 exec{ 命令行'security'、'-q'、'find generic password'、'-a', 当前用户'-s',钥匙链'-w' 标准输出=标准输出 errorOutput=stderr ignoreExitValue true } 然后运行./gradlew--debug命令,它将返回构建 建设成功 如果我
exec{
命令行'security'、'-q'、'find generic password'、'-a',
当前用户'-s',钥匙链'-w'
标准输出=标准输出
errorOutput=stderr
ignoreExitValue true
}
然后运行./gradlew--debug命令,它将返回构建
建设成功
如果我再跑一次
纺纱机器人
我得到下面的错误
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDevDebugGoogleServices'.
File google-services.json is missing. The Google Services Plugin
cannot function without it.
你知道我为什么会犯这个错误吗 看起来你正在应用程序中使用谷歌服务。你需要从谷歌开发者网站获得一个json文件。@Rubelhasan如果我的评论有帮助,你能投票支持吗?如果你这样做,那就太好了。谢谢