Intellij Idea - Android Studio Plugin - Build Failed
已回答
from 5 months ago I use Intellij Idea CE to develop an android studio plugin
after Android studio latest update
Android Studio Arctic Fox | 2020.3.1
Build #AI-203.7717.56.2031.7583922, built on July 26, 2021
my plugin does not work anymore
I update Intellij Idea CE to match the android studio version, then when I tried to build my plugin again
build failed and show me this error
Execution failed for task ':instrumentCode'.
> Could not resolve all files for configuration ':detachedConfiguration3'.
> Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:203.7717.56.2031.7583922.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/203.7717.56.2031.7583922/java-compiler-ant-tasks-203.7717.56.2031.7583922.pom
- https://dl.google.com/dl/android/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/203.7717.56.2031.7583922/java-compiler-ant-tasks-203.7717.56.2031.7583922.pom
- https://jcenter.bintray.com/com/jetbrains/intellij/java/java-compiler-ant-tasks/203.7717.56.2031.7583922/java-compiler-ant-tasks-203.7717.56.2031.7583922.pom
here is my build.gradle
plugins {
id 'org.jetbrains.intellij' version '0.6.4'
id 'org.jetbrains.kotlin.jvm' version '1.5.21'
}
group 'com.myplugin'
version '1.5.7'
repositories {
mavenCentral()
google()
jcenter()
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2020.3.3'
plugins = ['android']
localPath 'ANDROID STUDIO PATH'
updateSinceUntilBuild = false
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
How to fix it .??
请先登录再写评论。
Hello - see if the suggestion from this comment helps.