I\'m trying to generate a release build but im not able because of mutidex issues my project has all the multidex enabled and dependencies added
The error i\'m rece
This issue can also occur if your buildDir is the same for two or more modules in a project.
In my case It was happening when I try to run older project on new installed Android studio
The problem solved by running Build->Clean Project
Note: As friends say on comments this is solution for a flutter project
In my case (Developing a plugin), doing these steps worked:
cd example/android (example is the project path)./gradlew app:cleancd ..; flutter clean; flutter packages getChange your package name, ex:
Your current package name:
com.example.appname
to:
com.example.appname.app
try add packageBuildConfig(false) in your library module:
android{
...
packageBuildConfig(false)
}
I got the same error. This type of application is not as generic as we do except. IN my application development I was using the below mentioned dependencies
youtube_player_flutter: ^6.1.0+7
webview_flutter: ^0.3.20+2
since youtube_player_flutter internally it makes use of webview_flutter as one of the dependencies. I removed the dependencies webview_flutter and it worked.