search

Home  >  Q&A  >  body text

android-studio - Error:(1, 0) Plugin with id 'com.android.application' not found.

使用android studio导入项目的时候报错

Error:(1, 0) Plugin with id 'com.android.application' not found.
<a href="openFile:F:\Demo\Traffic\build.gradle">Open File</a>

![图片描述][1]

请问怎么解决

大家讲道理大家讲道理2772 days ago879

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-17 17:32:28

    Android Studio projects are divided into Application Module and Library Module. Check whether the Traffic you imported belongs to Application or Library. You can see from the first line of build.gradle that Application is 'com.android.application'. Library is 'com.android.library'. If it is Library, do not import it directly through Import project. You must import Application first and then Import Module to Library.

    reply
    0
  • PHPz

    PHPz2017-04-17 17:32:28

    1. My colleagues here also had this problem. When importing the project, it was not the build.gradle in the project root directory that was imported, but the build.gradle in the app directory, which caused such a problem
    2. Importing the project root directory build.gradle

    reply
    0
  • Cancelreply