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

[Bug] Execution failed for task ':keyboard_height_plugin:parseDebugLocalResources'. #1036

Open
jonathanmach opened this issue Feb 14, 2025 · 1 comment

Comments

@jonathanmach
Copy link

jonathanmach commented Feb 14, 2025

Bug Description

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':keyboard_height_plugin:parseDebugLocalResources'.
> Could not resolve all files for configuration ':keyboard_height_plugin:androidApis'.
   > Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for PlatformAttrTransform: /Users/jonathan/Library/Android/sdk/platforms/android-31/android.jar.
         > /Users/jonathan/Library/Android/sdk/platforms/android-31/android.jar

* 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
Error: Gradle task assembleDebug failed with exit code 1

How to Reproduce

Create a blank project, add the lib as a dependency and try to build it for Android.

I'm running the new 3.29 version

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.1 24B83 darwin-arm64, locale en-GB) [1,280ms]
    • Flutter version 3.29.0 on channel stable at /Users/***/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (4 days ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [2.8s]
    • Android SDK at /Users/jonathan/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

Expected Behavior

Pass build

Operating System

MacOS

AppFlowy Editor Version(s)

appflowy_editor: ^5.0.0

Screenshots

No response

Additional Context

No response

@CanGonulacar
Copy link

I'm using Java version OpenJDK Runtime Environment (build 21.0.4+-12508038-b607.1). I don't have a problem.

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

No branches or pull requests

2 participants