Android introduces aar file error:

Supplied String module notation 'aar' is invalid

To solve

Add to Gradle:

repositories{
    flatDir{
        dirs "libs"}}Copy the code

Replace dependencies with the following:

implementation fileTree(dir: "libs", include: ['*.aar'."*.jar"])
Copy the code

Implementation (name: ‘XXXXXX ‘,’aar’)

    implementation(name: 'glide - 4.10.0'.'aar')
    implementation(name: 'Java - 3.0.0'.'aar')
    implementation(name: 'MPAndroidChart - v3.1.0'.'aar')
Copy the code

Modify to: implementation Files (‘libs\ xxxxXXXX.aar ‘)

    implementation files('libs \ \ gifdecoder - 4.10.0 aar')
    implementation files('libs \ \ glide - 4.10.0 aar')
    implementation files('libs \ \ Java - 3.0.0 aar')
Copy the code

I’ll just compile it again