openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
753 stars 365 forks source link

`lime test android` failed #1674

Closed ClintFlames closed 1 year ago

ClintFlames commented 1 year ago
> Task :app:checkDebugManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:checkDebugManifest' (type 'CheckManifest').
  - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type 'com.android.build.gradle.internal.tasks.CheckManifest' property 'manifest' has @Input annotation used on property of type 'File'.

    Reason: A property of type 'File' annotated with @Input cannot determine how to interpret the file.

    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 55s
1 actionable task: 1 executed

OS: Manjaro Linux SDK: 26 NKD: r15c JDK: 17.0.2 Gradle: 7.3 hxcpp: git

player-03 commented 1 year ago

I looked it up, and most of the advice seems to center on updating Gradle or the Android SDK. Gradle is probably fine, but perhaps you could try a newer SDK?

ClintFlames commented 1 year ago

Thanks for the help, but it was actually a problem with gradle 7+. When I downgraded it to 6.7 everything fixed.