导入android studio 项目错误:Error:(1, 0) Plugin with id 'com.android.application' not found
2015-11-24 10:47
435 查看
导入android studio 项目错误:Error:(1, 0) Plugin with id 'com.android.application' not found
修改build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "org.loader.recyclerviewheader" minSdkVersion 21 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']) compile 'com.android.support:recyclerview-v7:22.1.1' }
修改build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "org.loader.recyclerviewheader" minSdkVersion 21 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']) compile 'com.android.support:recyclerview-v7:22.1.1' }
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'//修改自己当前as 中所有的gradle版本
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
相关文章推荐
- TouchSlider 实现(PC及移动端触摸界面)的幻灯slider效果
- 使用第三方应用授权时应用调用OAuth一直出现redirect_uri参数错误
- WebViewJavascriptBridge Demo (js与native之间的数据互动)
- Android的四种启动模式(launchModel)
- 新闻客户端首页图片无限循环滚动展示(可点击触发不同事件)初步封装IOS
- Android开源库
- 在cocoa China看到的一篇app发布的流程文章,留下来用
- IOS开发之记录用户登陆状态
- 使用Mybatis-Generator自动生成Dao、Model、Mapping相关文件
- Android性能优化之常见的内存泄漏
- IOS AppStore内付费教程
- apple 审核团队电话
- 移动端 HTML5 获取地理位置及百度地图
- 移动端头部meta、link书写比较好的案例
- notification的几种使用方法
- iOS开发的22个奇谲巧技
- [ecshop 资料] ectouch 微信通 微信接入 自动注册 的代码结构
- Android-Fragment动态例子
- 一步一步学习Swift之(二):好玩的工具playground与swfit基础语法
- Android开发进阶系列(七) 使用数据库