Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. #6

@iyuhang

Description

@iyuhang

已添加
dependencies {
api 'com.umeng.sdk:common:latest.integration'
api 'com.umeng.sdk:analytics:latest.integration'
}

flutter 1.12.13

错误日志

/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:16: error: class, interface, or enum expected
public void onResume() {
^
/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:18: error: class, interface, or enum expected
MobclickAgent.onResume(this);
^
/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:20: error: class, interface, or enum expected
}
^
/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:22: error: class, interface, or enum expected
public void onPause() {
^
/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:24: error: class, interface, or enum expected
MobclickAgent.onPause(this);
^
/Users/apple/Flutter/projects/fixtime/android/app/src/main/java/com/example/fixtime/MainActivity.java:25: error: class, interface, or enum expected
}
^
6 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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 3s
Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions