我是靠谱客的博主 真实金针菇,最近开发中收集的这篇文章主要介绍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 studio gradle scripts,Android Studio how to run gradle sync manually?所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部