問題描述:Gradle version 2.10 is required. Current version is 2.8.Gradle版本由2.8升為2.10後,發現所有依賴play-services的module都無法構建了,提示如下錯誤:java.io.FileNotFoundException...
問題描述:
Gradle version 2.10 is required. Current version is 2.8.
Gradle版本由2.8升為2.10後,發現所有依賴play-services的module都無法構建了,提示如下錯誤:
java.io.FileNotFoundException:...\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (系統找不到指定的路徑。)
問題原因:
這是gradle工具版本gradle:2.0.0-alpha5的bug,
gradle:2.0.0-alpha6已解決
2.0.0-alpha6 (2016/1/15) Instant Run Fix alpha5 reported issues : - cannot build when importing play-services.
解決方法:
dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha6' }