java.lang.NoClassDefFoundError:com.android.tools.idea.gradle.AndroidGradleModel

时间:2017-06-12 11:29:09

标签: android-studio intellij-idea intellij-plugin

当我在Android Studio上运行插件时,我有 java.lang.NoClassDefFoundError:com.android.tools.idea.gradle.AndroidGradleModelexception 。当我在Intellij IDEA上运行插件时,插件工作正常。 您可以在此repo找到完整示例 我的build.gradle:

buildscript {
    repositories {
        maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
    }
    dependencies {
        classpath "gradle.plugin.org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.11"
    }
}

plugins {
    id "org.jetbrains.intellij" version "0.2.11"
}

apply plugin: "org.jetbrains.intellij"
apply plugin: 'java'
apply plugin: 'application'

intellij {
    version 'IC-2016.2'
    plugins = ['android', 'gradle']
}

sourceCompatibility = 1.7
targetCompatibility = 1.7

repositories {
    mavenCentral()
}

dependencies {
    compile 'org.apache.commons:commons-io:1.3.2'
}

0 个答案:

没有答案