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 ':onesignal_flutter:parseDebugLocalResources'. > Could not resolve all files for configuration ':onesignal_flutter: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: C:\Users\Srp Technologoies\AppData\Local\Android\sdk\platforms\android-28\android.jar. #938

Open
2 of 3 tasks
sajidullah-srp opened this issue Aug 20, 2024 · 1 comment

Comments

@sajidullah-srp
Copy link

What happened?

PS D:\sajid\nurse_staffing_app> flutter run
Launching lib\main.dart on SM A325F in debug mode...

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':onesignal_flutter:parseDebugLocalResources'.

Could not resolve all files for configuration ':onesignal_flutter: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: C:\Users\Srp Technologoies\AppData\Local\Android\sdk\platforms\android-28\android.jar.
> C:\Users\Srp Technologoies\AppData\Local\Android\sdk\platforms\android-28\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.

BUILD FAILED in 40s
Running Gradle task 'assembleDebug'... 42.1s
Error: Gradle task assembleDebug failed with exit code 1

Steps to reproduce?

1. install API level 28

What did you expect to happen?

solve this

OneSignal Flutter SDK version

Release 5.2.3

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nextvisionmx
Copy link

It seems to be the problem when updating the flutter version, in this other one they give the solution:
#930

sohyuyuan has a temporary solution

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