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

Not Compiling on Latest Flutter Version 3.29.0 #156

Open
psinghal-tfoco opened this issue Feb 18, 2025 · 4 comments
Open

Not Compiling on Latest Flutter Version 3.29.0 #156

psinghal-tfoco opened this issue Feb 18, 2025 · 4 comments

Comments

@psinghal-tfoco
Copy link

Configuration -
Flutter Version - 3.29.0
Android Studio Version - Android Studio Ladybug Feature Drop | 2024.2.2
OS - Apple Silicon Based Chipset MacOS 15.3.1 (24D70)

/Users/piyush/StudioProjects/wmd-mobile-app/android/app/src/debug/AndroidManifest.xml Error:
Attribute application@allowBackup value=(true) from (unknown)
is also present at [io.kommunicate.sdk:kommunicateui:2.12.1] AndroidManifest.xml:20:9-36 value=(false).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml to override.

FAILURE: Build failed with an exception.

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

Manifest merger failed with multiple errors, see logs

  • 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 18s
Error: Gradle task assembleQa_v2Debug failed with exit code 1

**Then Added this Line in Android Manifest File ->
tools:replace="android:allowBackup"

After that ->**

/Users/piyush/.pub-cache/hosted/pub.dev/kommunicate_flutter-2.0.2/android/src/main/java/io/kommunicate/kommunicate_flutter_plugin/KmMethodHandler.java:15: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/piyush/.pub-cache/hosted/pub.dev/kommunicate_flutter-2.0.2/android/src/main/java/io/kommunicate/kommunicate_flutter_plugin/KommunicateFlutterPlugin.java:10: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/piyush/.pub-cache/hosted/pub.dev/kommunicate_flutter-2.0.2/android/src/main/java/io/kommunicate/kommunicate_flutter_plugin/KommunicateFlutterPlugin.java:17: error: cannot find symbol
public static void registerWith(Registrar registrar) {
^
symbol: class Registrar
location: class KommunicateFlutterPlugin
Note: /Users/piyush/.pub-cache/hosted/pub.dev/kommunicate_flutter-2.0.2/android/src/main/java/io/kommunicate/kommunicate_flutter_plugin/KmMethodHandler.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/piyush/.pub-cache/hosted/pub.dev/kommunicate_flutter-2.0.2/android/src/main/java/io/kommunicate/kommunicate_flutter_plugin/KmMethodHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':kommunicate_flutter:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 8s
Error: Gradle task assembleQa_v2Debug failed with exit code 1

@prateek-kommunicate
Copy link

@psinghal-tfoco Seems like cache issue. Did you tried after clearing the cache?

@psinghal-tfoco
Copy link
Author

@psinghal-tfoco Seems like cache issue. Did you tried after clearing the cache?

Yes, I already tried, but it's not resolving even after clearing the cache.

AgnelSelvan added a commit to AgnelSelvan/Kommunicate-Flutter-Plugin that referenced this issue Feb 27, 2025
location: interface PluginRegistry Issue
AgnelSelvan added a commit to AgnelSelvan/Kommunicate-Flutter-Plugin that referenced this issue Feb 27, 2025
@AgnelSelvan
Copy link

@psinghal-tfoco @prateek-kommunicate Until Pull Request 157 merged you can use this in your pubspec.yaml file

  kommunicate_flutter:
      git:
        url: https://github.com/AgnelSelvan/Kommunicate-Flutter-Plugin.git
        ref: "156"

@h-savarala
Copy link

@AgnelSelvan Check Android 15 has edge to edge problem also can you fix it

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

4 participants