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

The ^5.1.0+4 version is not building in Android #728

Closed
ghost opened this issue Mar 16, 2021 · 2 comments
Closed

The ^5.1.0+4 version is not building in Android #728

ghost opened this issue Mar 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Mar 16, 2021

Environment

Technology Version
Flutter version 2.0.1
Plugin version ^5.1.0+4
Android version Android SDK version 29.0.3

Description

Expected behavior: The app should build.

Current behavior: The app is not building and it's showing an error.

Stacktrace/Logcat

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

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

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/home/user/development/example_app/build/flutter_inappwebview/intermediates/library_manifest/debug/AndroidManifest.xml:7:5-11:15: AAPT: error: unexpected element found in .

  • 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 11s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
✏️ Creating android/settings_aar.gradle...
android/settings_aar.gradle created successfully.
Building plugin flutter_inappwebview...
Running Gradle task 'assembleAarRelease'...

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/user/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.1.0+4/android/build.gradle' line: 22

  • What went wrong:
    A problem occurred evaluating root project 'flutter_inappwebview'.

Failed to apply plugin [id 'com.android.internal.version-check']
Minimum supported Gradle version is 5.6.4. Current version is 5.6.2. If using the gradle wrapper, try editing the distributionUrl in /home/arturo/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.1.0+4/android/gradle/wrapper/gradle-wrapper.properties to gradle-5.6.4-all.zip

  • 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 362ms

Exception: The plugin flutter_inappwebview could not be built due to the issue above.

@ghost ghost added the bug Something isn't working label Mar 16, 2021
@ghost
Copy link
Author

ghost commented Mar 16, 2021

I solved it changing these files:

android/build.gradle
classpath 'com.android.tools.build:gradle:4.1.0'

android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip

Hope it helps for those who have the same problem.

Copy link

github-actions bot commented Nov 6, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants