zoukankan      html  css  js  c++  java
  • Cant migrate project to Gradle in Android Studio

    The project thinks it's still a non-Gradle based project; it's not the presence of the build.gradle file that makes it Gradle-based, but it's how the project was set up in the first place. You'll need to re-import your project to finish the conversion to Gradle.

    First, though, it looks like you don't have a settings.gradle file; it looks like you need one. Since you've set up your project as a single-module project, then you can put the file in your project's root directory, next to build.gradle. It should contain this:

    import':'

    In the future if you add more modules to your project you may want to convert it to a multi-module directory structure, but you don't need to worry about that now. In any event, now you need to do the re-import in Android Studio:

    1. Close your project
    2. Back up your project
    3. Delete the .idea folder in the root directory of the project
    4. Delete all the .iml files in your project
    5. Import your project in Android Studio, and in the dialog that prompts you for a file, choose thebuild.gradle file.

    After this you should be good to go.

  • 相关阅读:
    centos8网络连接(1)虚拟机网卡和网络编辑器设置
    centos7离线安装ruby
    centos7安装ruby-2.6.5,简单快捷的下载与安装方式
    redis 4.0.13 -- 集群模式
    活了
    世界无我
    markdown_test
    关于mimikatz在webshell运行
    可用性自动化V3
    关于sqlmap常用
  • 原文地址:https://www.cnblogs.com/seven1979/p/4372572.html
Copyright © 2011-2022 走看看