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

Incorrect package="io.agora.agora_rtc_ng" found in source AndroidManifest.xml #2184

Open
1 of 5 tasks
appfliiq-x opened this issue Jan 16, 2025 · 1 comment
Open
1 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@appfliiq-x
Copy link

appfliiq-x commented Jan 16, 2025

Version of the agora_rtc_engine

Getting error when trying to build flutter app with gradle-8.3 and android plugin version 8.1.0
I'm using the latest version of agora_rtc_engine:

agora_rtc_engine:
dependency: "direct main"
description:
name: agora_rtc_engine
sha256: "5e7361402a8d6173467b251165bca5ffd0ef256abbe380fe6f2b5042503f83c3"
url: "https://pub.dev"
source: hosted
version: "6.5.0"

How can I fix it? The error is:

Incorrect package="io.agora.agora_rtc_ng" found in source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="io.agora.agora_rtc_ng" from the source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.

Platforms affected

  • Android
  • iOS
  • macOS
  • Windows
  • Web

Steps to reproduce

  1. agora_rtc_engine ^6.5.0
  2. flutter version 3.27.2
  3. set gradle to gradle-8.3-all in gradle-wrapper.properties file
  4. set com.android.application to version "8.1.0" in android/settings.gradle
  5. run flutter project

Expected results

BUILD TO SUCCEED

Actual results

It seems there is an Incorrect package="io.agora.agora_rtc_ng" found in source AndroidManifest.xml hence the build fails

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Incorrect package="com.agora.iris_method_channel" found in source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/iris_method_channel-2.2.2/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.agora.iris_method_channel" from the source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/iris_method_channel-2.2.2/android/src/main/AndroidManifest.xml.
Incorrect package="io.agora.agora_rtc_ng" found in source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="io.agora.agora_rtc_ng" from the source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':iris_method_channel:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="com.agora.iris_method_channel" found in source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/iris_method_channel-2.2.2/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="com.agora.iris_method_channel" from the source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/iris_method_channel-2.2.2/android/src/main/AndroidManifest.xml.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':agora_rtc_engine:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="io.agora.agora_rtc_ng" found in source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="io.agora.agora_rtc_ng" from the source AndroidManifest.xml: /home/user/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.0/android/src/main/AndroidManifest.xml.

* 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 4m 58s
Error: Gradle task assembleDebug failed with exit code 1
]

Flutter Doctor output

Doctor output
[Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.2, on IDX GNU/Linux 6.1.112+, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
    ✗ CMake is required for Linux development.
      It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
    ✗ pkg-config is required for Linux development.
      It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/
[!] Android Studio (not installed)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 4 categories.]
@peilinok peilinok self-assigned this Jan 20, 2025
@peilinok peilinok added the bug Something isn't working label Jan 20, 2025
@garmashev
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants