Skip to content

编译报错 #670

Open
Open

Description

@MarkHan1213

下载完毕代码后,在hapjs/mockup/platform/android目录下执行

./gradlew assembleDebug/Release
报如下错误

FAILURE: Build failed with an exception.

  • Where:
    Script '/hapjs/development/gradle-plugin/prebuilts/2.3.0/buildscript.gradle' line: 15

  • What went wrong:
    A problem occurred evaluating script.

java.lang.NullPointerException (no error message)

  • 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 14s

Activity

  1. csj5588 commented on Apr 2, 2024

    @csj5588

    same question

  2. MarkHan1213 commented on Apr 2, 2024

    @MarkHan1213
    Author

    第一个问题可以修改为JDK8来解决, 但后续编译又出现了新的报错
    FAILURE: Build failed with an exception.

    • What went wrong:
      A problem occurred configuring project ':inspector'.

    java.lang.NullPointerException (no error message)

    • 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.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 1s

  3. kerry202 commented on Jun 24, 2025

    @kerry202

    clean 工程后在试试看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions