我是靠谱客的博主 真实金针菇,这篇文章主要介绍android studio gradle scripts,Android Studio how to run gradle sync manually?,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部