当前位置: 首页 > 知识库问答 >
问题:

错误:(1,0)id为“com.android”的插件。找不到应用程序,怎么了?[副本]

常英纵
2023-03-14

我得到了以下错误,你们都可以看看我的代码,我怎么才能解决它?

我已经下载文件并重新启动了几次......

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.orbotix.ovalfreefall"
        minSdkVersion 18
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

我的另一个gradle文件

我不知道这是不是这个文件,我真的很困惑应用插件:“com.android.application”

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.orbotix.orbbasicloader"
        minSdkVersion 18
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    //compile fileTree(dir: 'libs', include: ['*.jar'])

    releaseCompile project(path: ':RobotCommonLibrary', configuration: 'release')
    releaseCompile project(path: ':RobotLeConnectorLibrary', configuration: 'release')
    releaseCompile project(path: ':RobotLibraryUmbrella', configuration: 'release')

    debugCompile project(path: ':RobotLeConnectorLibrary', configuration: 'debug')
    debugCompile project(path: ':RobotCommonLibrary', configuration: 'debug')
    debugCompile project(path: ':RobotLibraryUmbrella', configuration: 'debug')
}

共有1个答案

仇高韵
2023-03-14

走这边

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