导入android studio 项目错误:Error:(1, 0) Plugin with id 'com.android.application' not found

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()    }}


更多相关文章

  1. 修改Android(安卓)framework定制重启功能
  2. android 5.0修改插电显示电池百分比,拔掉不显示问题
  3. Android(安卓)O添加Settings设置项的方法
  4. android连接mysql数据库
  5. 修改AVD的存放位置
  6. 一个Android健身APP源码(类似KEEP、FEEL、轻+、减约、薄荷等)
  7. 如何将Android默认的Camra程序导入到eclipse中
  8. Android(安卓)Apk 反编译,Apk 修改以后再编译打包,签名
  9. Android高手进阶教程(八)之----Android(安卓)Widget开发案例(世

随机推荐

  1. Android的休眠与唤醒 && 实例
  2. android studio使用快捷键大全
  3. 快手内推
  4. Android S5PV210 camera驱动测试程序
  5. Android 应用程序结构介绍
  6. Android(安卓)Asynchronous Http Client
  7. Android本地语音识别引擎PocketSphinx-语
  8. 使用Android(安卓)OpenGL ES 2.0绘图之五
  9. 配置Android开发环境
  10. Android事件分发机制完全解析,带你从源码