flutter - Migrate to Android embedding v2 - plugin audioplayers error

Asked

Viewed 43 times

0

I have a bit of a problem (I believe). Earlier today, I was working on my app and everything was ok, but now at night I went running and got this error message: erro 1

Upgrading to Android embedding v2 (I honestly didn’t understand anything it means, I just searched and found some tutorial videos) and running again the project, I had another error: erro 2

Inside the folder of the audiplayers mentioned in the image, you have the following code:

    group 'xyz.luan.audioplayers'
version '1.0-SNAPSHOT'

buildscript {
    ext.kotlin_version = '1.4.21'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

rootProject.allprojects {
    repositories {
        google()
        jcenter()
    }
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion 28

    defaultConfig {
        minSdkVersion 23
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    dependencies {
        implementation 'androidx.annotation:annotation:1.1.0'
    }
}

allprojects {
    gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
        }
    }
}
dependencies {
    implementation "androidx.core:core-ktx:+"
}
repositories {
    mavenCentral()
}

I understood that it is an error regarding the plugin audioplayers, but I did not want to change the plugin, because I would have a lot of work to change the whole project. Does anyone know how to fix it? From now on, thank you!

  • Actually it’s not a bug seven head documentation just follow the documentation if you can’t get I’m here to help

  • This is related to Android X? I thought it had nothing to do, because I always managed to run the program even without being with Android X. I believe the problem cited is another, is related to Android embedding v2. Tonight I will test and return.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.