求助Plugin with id 'com.android.application' not found.报错是什么原因?

a757575ssss 2016-03-21 10:22:55
apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.qf.day20hw_firstrun"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:22.2.1'
}

是什么原因啊?
还有
import android.support.v7.app.AppCompatActivity;
也报错,我明明下了v7包啊
...全文
2436 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wei220000 2016-03-21
  • 打赏
  • 举报
回复
gradle没有配置好,试试最新版本的。
qq_26763799 2016-03-21
  • 打赏
  • 举报
回复
用的AS吧,gradle配置问题 https://www.zhihu.com/question/40889340/answer/89771780 可以参看下我的回答

80,350

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧