无法找到根项目Android Studio上的参数[:app]的方法include() [英] Could not find method include() for arguments [:app] on root project Android Studio

查看:626
本文介绍了无法找到根项目Android Studio上的参数[:app]的方法include()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am trying to import an android project to Android studio,after importing and then clicking on the green run button :

我试图将一个android项目导入到Android studio中,然后点击绿色运行按钮:失败:生成失败,出现异常。

FAILURE: Build failed with an exception.




  • 其中:

    • Where:

    • 构建文件
      '/home/myusername/prjcts/nomadx/settings.gradle'行:1

      Build file '/home/myusername/prjcts/nomadx/settings.gradle' line: 1




      • 出错:
        评估root项目'nomadx'时出现问题。


      • 无法在根项目'nomadx'上找到arguments [:app]的include()方法。

        Could not find method include() for arguments [:app] on root project 'nomadx'.

        文件内容 settings.gradle

        include ':app'
        


        推荐答案

        我解决了这个问题;对于那些有同样问题的人:你应该使用终端/控制台而不是Android Studio来构建 gradle

        I solved the problem ; for those who have the same issue : You should build the gradle with the Terminal/console not with Android studio :

        ./gradlew assembleRelease
        

        这篇关于无法找到根项目Android Studio上的参数[:app]的方法include()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆