Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

运行run-android编译报错,FAILURE: Build failed with an exception. #26

Open
aiynmm opened this issue Sep 30, 2017 · 1 comment
Open

Comments

@aiynmm
Copy link

aiynmm commented Sep 30, 2017

Error occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-vector-icons'.
> The SDK Build Tools revision (23.0.1) is too low for project ':react-native-vector-icons'. Minimum required is 25.0.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

但是,gradle里边 buildToolsVersion '25.0.0',没错啊!
不知道怎么回事?!

@zouyu0008
Copy link

android/build.gradle里插入这些代码就好

subprojects
  {     
    afterEvaluate {project ->      
        if (project.hasProperty("android")) {      
             android {        
                 compileSdkVersion 25     
                 buildToolsVersion '25.0.0'      
             }      
         }      
     }       
 }  

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants