android-studio - Error:(1, 0) Plugin with id 'com.android.application' not found.
大家讲道理
大家讲道理 2017-04-17 17:30:28
0
2
869

使用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]

请问怎么解决

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
PHPzhong

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.

PHPzhong

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template