Aman-Malhotra / Volume_Flutter

Now you can change android volumes in Flutter. You can change MEDIA volume, NOTIFICATION volume, RING Volume, VOICE CALL Volume, ALARM Volume and SYSTEM Volume. This is exclusively for android right now because I don't have max to do the IOS coding and I don't have experience in IOS coding as well. Pull requests for IOS Implementation are welcome.
MIT License
23 stars 31 forks source link

androidX problem? #4

Closed suyie001 closed 4 years ago

suyie001 commented 4 years ago

when i was trying to build apk,and run flutter build apk.then the problem comes. Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 112.5s The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. ✏️ Creating android\settings_aar.gradle... [!] Flutter tried to create the file android\settings_aar.gradle, but failed. To manually update settings.gradle, follow these steps:

1. Copy `settings.gradle` as `settings_aar.gradle`
2. Remove the following code from `settings_aar.gradle`:

        def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

        def plugins = new Properties()
        def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
        if (pluginsFile.exists()) {
            pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
        }

        plugins.each { name, path ->
            def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
            include ":$name"
            project(":$name").projectDir = pluginDirectory
        }

Please create the file and run this command again.

Aman-Malhotra commented 4 years ago

Issues Resolved by Thorben Markmann. Updated in Version 0.1.2