Program type already present: BuildConfig

后端 未结 13 1469
后悔当初
后悔当初 2020-12-13 08:36

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

相关标签:
13条回答
  • 2020-12-13 08:50

    This issue can also occur if your buildDir is the same for two or more modules in a project.

    0 讨论(0)
  • 2020-12-13 08:53

    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

    0 讨论(0)
  • 2020-12-13 08:54

    In my case (Developing a plugin), doing these steps worked:

    • cd example/android (example is the project path)
    • ./gradlew app:clean
    • cd ..; flutter clean; flutter packages get
    0 讨论(0)
  • 2020-12-13 08:54

    Change your package name, ex:

    Your current package name:

    com.example.appname

    to:

    com.example.appname.app

    0 讨论(0)
  • 2020-12-13 09:01

    try add packageBuildConfig(false) in your library module:

    android{
      ...
      packageBuildConfig(false)
    }
    
    0 讨论(0)
  • 2020-12-13 09:04

    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.

    0 讨论(0)
提交回复
热议问题