概述
I have a trouble may proof gradlew clean is not equal to ADT build clean. And Now I am struggling to get it fixed.
Here is what I got:
I set a configProductID=11111 from my gradle.properties, from my build.gradle, I add
resValue "string", "ProductID", configProductID
If I do a build clean from ADT, the resource R.string.ProductID can be generated. Then I can do bellow command successfully.
gradlew assembleDebug
But, as I am trying to setup build server, I don't want help from ADT IDE, so I need to avoid using ADT build clean. Here comes my problem.
Now I change my resource name from "ProductID" to "myProductID", I do:
gradlew clean
I get error
PS D:workwctposdemo> .gradlew.bat clean
FAILURE: Build failed with an exception.
* Where:
Build file 'D:workwctposdemoappbuild.gradle'
* What went wrong:
Could not compile build file 'D:workwctposdemoappbuild.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 57
If I try with:
.gradlew.bat --recompile-scripts
I just get error of
Unknown command-line option '--recompile-scripts'.
最后
以上就是真实金针菇为你收集整理的android studio gradle scripts,Android Studio how to run gradle sync manually?的全部内容,希望文章能够帮你解决android studio gradle scripts,Android Studio how to run gradle sync manually?所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复