Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not determine the dependencies of task ':prepareSandbox'. #898

Closed
aishang5wpj opened this issue Feb 10, 2022 · 2 comments · Fixed by #880
Closed

Could not determine the dependencies of task ':prepareSandbox'. #898

aishang5wpj opened this issue Feb 10, 2022 · 2 comments · Fixed by #880
Labels
Milestone

Comments

@aishang5wpj
Copy link

Hi, I created an plugin for Android Studio, use 'intellij.localPath' to specify AS path, but it shows error to me when I excuted runIde task.

Here is the error msg:

Could not determine the dependencies of task ':prepareSandbox'.
> Failed to query the value of task ':prepareSandbox' property 'pluginJar'.
   > The value of a manifest attribute must not be null (Key=Build-SDK).

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Here is my config:

//build.gradle 

plugins {
    id 'java'
    id 'org.jetbrains.intellij' version '1.3.1'
    id 'org.jetbrains.kotlin.jvm' version '1.5.0'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib"
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
    // Require the Android plugin, Gradle will match the plugin version to intellij.version
    plugins = ['android']

    localPath = '/Applications/Android Studio.app'
}

patchPluginXml {
    changeNotes = """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}
test {
    useJUnitPlatform()
}

When I replace 'intellij.localPath' with 'intellij.version' it works good.

intellij {
    version = '203.7717.56'
    type = 'IC'              // Use IntelliJ IDEA CE because it's the basis of the IntelliJ Platform
    // Require the Android plugin, Gradle will match the plugin version to intellij.version
    plugins = ['android']
}

Could you please tell me what's problem with it? Does 'intellij.localPath' can not be applied to specify local Android Studio path?

@hsz
Copy link
Member

hsz commented Feb 10, 2022

@aishang5wpj Thank you for the detailed description. This issue duplicates #881 and was fixed with #880.
Fix will be available in v1.4.0

@hsz hsz closed this as completed Feb 10, 2022
@hsz hsz added the bug label Feb 10, 2022
@hsz hsz added this to the next milestone Feb 10, 2022
@hsz hsz linked a pull request Feb 10, 2022 that will close this issue
@aishang5wpj
Copy link
Author

@hsz hsz Okay, I get it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants