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

Run Example demo has an error,here is error info: #2061

Closed
yaochangliang159 opened this issue Mar 13, 2024 · 2 comments
Closed

Run Example demo has an error,here is error info: #2061

yaochangliang159 opened this issue Mar 13, 2024 · 2 comments

Comments

@yaochangliang159
Copy link

i do not change anything,just want run it,but it has an error:
Launching lib/main.dart on NAM AL00 in debug mode...
Running Gradle task 'assembleDebug'...
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

FAILURE: Build failed with an exception.

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

Could not resolve all files for configuration ':integration_test: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/yaochangliang/Library/Android/sdk/platforms/android-34/android.jar.
> /Users/yaochangliang/Library/Android/sdk/platforms/android-34/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 9s
Error: Gradle task assembleDebug failed with exit cod

Copy link

👋 @yaochangliang159

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@yaochangliang159
Copy link
Author

sorry,it is my problem,
there is no android-34/android.jar file in my disk
i remove the android-34 folder ,and redownload the android sdk API34,and it works

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

1 participant