当前位置:   article > 正文

android studio 找不到r.java,Android Studio无法重新生成R.java; Gradle找不到assembleDebug任务...

gradle assembledebug not found

我从git存储库中提取了一些最近的更改,然后突然, Android Studio抛出R.java的令牌未找到错误.我在Android Studio中打了“ Make Project”,以为新的版本可以解决这些错误,但我却得到了:

Information:Compilation completed with 2 errors and 0 warnings in 5 sec

Information:2 errors

Information:0 warnings

Error:Gradle:

FAILURE: Could not determine which tasks to execute.

* What went wrong:

Task 'assembleDebug' not found in root project 'project'.

* Try:

Run gradle tasks to get a list of available tasks.

Error:Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.

它不会编译的事实解释了R.java的问题,但是我对Gradle遇到的问题感到困惑.有什么帮助吗?

[编辑:]我启动了Linux,发现它没有相同的问题.我还注意到在项目属性下,在Windows中没有链接的Gradle项目,但是在Linux中,该项目被列为链接的项目.不幸的是,Android Studio显然没有this tool来帮助我解决问题,仅在IntelliJ中有效.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/306592
推荐阅读
相关标签
  

闽ICP备14008679号