flutter-intellij: 'Build Project' action doesn't work for flutter projects
From @darrellpf on April 30, 2017 1:37
Steps to Reproduce
Make a new flutter project
Intellij says frameworks detected
- configure
- click Android manifest.xml
- message is Android Facet added Click the build button Error : Android source generator : [Android] Android Manifest.xml file not found
Flutter Doctor
[✓] Flutter (on Linux, channel master)
• Flutter at /home/darrell/flutter
• Framework revision a4ba761bea (26 hours ago), 2017-04-28 16:01:14 -0700
• Engine revision da8ebf40bd
• Tools Dart version 1.23.0-dev.11.11
[✓] Host Executable Compatibility
• Downloaded executables execute on host
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
• Android SDK at /home/darrell/Android/Sdk
• Platform android-25, build-tools 25.0.2
• Java binary at: /home/darrell/android-studio/jre/bin/java
• Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b736)
[✓] Android Studio (version 2.4)
• Android Studio at /home/darrell/android-studio
• Gradle version 3.4.1
• Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b736)
[✓] IntelliJ IDEA Community Edition (version 2017.1)
• Dart plugin version 171.4424.10
• Flutter plugin version 13.0
[✓] Connected devices
• None
For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.
Copied from original issue: flutter/flutter#9691
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 22 (15 by maintainers)
For anyone looking for a workaround, this is what worked for me:
File > Project Structure > Modules > Android > Structure
ChangeManifest file
from:C:\Users\username\IdeaProjects\myapp\android\AndroidManifest.xml
To:C:\Users\username\IdeaProjects\myapp\android\app\src\main\AndroidManifest.xml
buen dia amigos soy nueva en programacion de android y tengo el siguiente error: Error:El prefijo “android” para el atributo “android:allowBackup” asociado a un tipo de elemento “application” no está enlazado. esto en el AndroidMan
ifest.xml favor una ayudita¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
FWIW I am getting this issue all the time even today (2019-09) with everything (Flutter, IntelliJ) up to date. Both “Run” and “Debug” work, and clearly they are doing their thing to build the project, but menu “Build” -> Build project and “Build” -> Rebuild project fail.