fluttercommunity / fluttercommunity/flutter_downloader

Build Failure with flutter_downloader 1.11.8

Open
#986 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

**Description**:

When using the flutter_downloader package (version 1.11.8) in my Flutter project, the app fails to build. The error occurs during the :app:processDebugMainManifest task, indicating an issue with parsing the AndroidManifest.xml file.

**Error Output**:
Here is the full error message:
```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> com.android.manifmerger.ManifestMerger2$MergeFailureException: Error parsing D:\projects\myproject\android\app\src\main\AndroidManifest.xml

```
Steps to Reproduce

1. Add flutter_downloader (version 1.11.8) to your pubspec.yaml.
2. Configure AndroidManifest.xml as shown below.
3. Run the app on an Android emulator or device using flutter run.
4. Observe the build failure.

**Relevant Configuration**:
Below is my AndroidManifest.xml configuration:
```



























```

**Flutter Doctor Output**:
Here is the output from flutter doctor -v:
```
[√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.26100.2605], locale en-US)
• Flutter version 3.27.1 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 17025dd882 (3 weeks ago), 2024-12-17 03:23:09 +0900
• Engine revision cb4b5fff73
• Dart version 3.6.0
• DevTools version 2.40.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:\Users\azoz1\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.1)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.12.35514.174
• Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] VS Code (version 1.96.2)
• VS Code at C:\Users\azoz1\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0

[√] Connected device (4 available)
• SM G975F (mobile) • R58M37TRL7P • android-arm64 • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.2605]
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.205
• Edge (web) • edge • web-javascript • Microsoft Edge 131.0.2903.112

[√] Network resources
• All expected network resources are available.

• No issues found!
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reported pubspec.yaml dependency and the AndroidManifest.xml configuration, then reproduce the failure with flutter run and inspect the complete :app:processDebugMainManifest output. Compare the manifest entries with the flutter_downloader 1.11.8 setup and confirm done when the Android app builds successfully with the package enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.