wangdicoder / JueJinClient

A react-native app simulating JueJin App running on both Android and iOS
MIT License
1.22k stars 272 forks source link

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

Open aiynmm opened 7 years ago

aiynmm commented 7 years ago

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

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

zouyu0008 commented 6 years ago

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

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