简体   繁体   English

每次我在 npm install 后运行 react-native run-android 时,都会出现此错误

[英]This error keeps on coming everytime i run react-native run-android after npm install

Task :react-native-google-places:compileDebugRenderscript FAILED任务 :react-native-google-places:compileDebugRenderscript FAILED

  • What went wrong: Could not resolve all files for configuration ':react-native-google-places:debugCompileClasspath'.出了什么问题:无法解析配置 ':react-native-google-places:debugCompileClasspath' 的所有文件。

    Could not resolve com.android.support:appcompat-v7:26.1.0.无法解析 com.android.support:appcompat-v7:26.1.0。 Required by: project :react-native-google-places Cannot find a version of 'com.android.support:appcompat-v7' that satisfies the version constraints: Dependency path 'FastGo:react-native-google-places:unspecified' --> 'com.facebook.react:react-native:0.59.3' --> 'com.android.support:appcompat-v7:28.0.0'要求:项目 :react-native-google-places 找不到满足版本约束的“com.android.support:appcompat-v7”版本:依赖路径“FastGo:react-native-google-places:unspecified”- -> 'com.facebook.react:react-native:0.59.3' --> 'com.android.support:appcompat-v7:28.0.0'

In the android/app/build.gradle file, specify the compileSdkVersion & buildToolsVersion as,在 android/app/build.gradle 文件中,指定 compileSdkVersion & buildToolsVersion 为,

compileSdkVersion 26
buildToolsVersion "26.0.1"

Also make sure that you have installed SDK API level 26.还要确保您已安装 SDK API 级别 26。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM