相关疑难解决方法(0)

错误:(1,0)找不到ID为'com.android.application'的插件

这是我在Android Studio上的第一次尝试.我安装了0.8.0并更新到0.8.2.创建项目后,我收到错误消息:

错误:(1,0)找不到ID为'com.android.application'的插件

C:\用户\鲍勃\ AndroidStudioProjects\HelloAgain6 \程序\的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 20
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "com.example.bob.helloagain6"
        minSdkVersion 15
        targetSdkVersion 20
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}
Run Code Online (Sandbox Code Playgroud)

和C:\ Users\Bob\AndroidStudioProjects\HelloAgain6\build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'

        // NOTE: Do not place your …
Run Code Online (Sandbox Code Playgroud)

android gradle android-gradle-plugin

279
推荐指数
4
解决办法
35万
查看次数

找不到SDK位置.使用sdk.dir在local.properties文件中或使用ANDROID_HOME环境变量定义位置

我最近尝试导入从Google开发者网站下载的示例Android游戏.将它们导入Android Studio后,我收到以下错误:

错误:找不到SDK位置.使用sdk.dirlocal.properties文件或ANDROID_HOME环境变量定义位置.

这是什么?我想从Android Studio运行示例程序.

android android-studio android-studio-import

217
推荐指数
20
解决办法
33万
查看次数