zoukankan      html  css  js  c++  java
  • Task not found in root project

    使用AS开发安卓,导入一个工程遇到一个问题,***是工程名称,具体如下:

    Error:FAILURE: Build failed with an exception.


    * What went wrong:
    Task '' not found in root project 'android-visualizer-master1'.


    * Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    这是因为AS的早期版本错误配置了iml文件,添加了一个"<component name="FacetManager">" XML 这个不存在的属性.

    所以,我们只要把这个属性的内容全部删掉就ok了<component name="FacetManager"> ... </component>

    还有中方法,把工程下.idea的文件盒iml文件全部删掉,然后重新导入你的资源到新的工程也可以。

  • 相关阅读:
    DAY 169 创建虚拟环境05
    DAY 168 创建虚拟环境04
    DAY 167 创建虚拟环境03
    DAY 166 创建虚拟环境02
    java 内存区域
    java 内存机制
    JAVA GC
    JAVA根搜索算法
    mysql ---事务
    java lock -----锁
  • 原文地址:https://www.cnblogs.com/lzjsky/p/4976124.html
Copyright © 2011-2022 走看看