best-flutter / flutter_amap_location

高德地图flutter定位组件
MIT License
274 stars 70 forks source link

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. #37

Closed virskor closed 2 years ago

virskor commented 4 years ago

Building plugin amap_location... Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 1.8s WARNING: The option setting 'android.enableR8=true' is experimental and unsupported. The current default is 'false' Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

The plugin amap_location could not be built due to the issue above.

jiangyh1024 commented 4 years ago

@virskor I'm encountering this problem too. Have u solved it ?

virskor commented 4 years ago

@ jiangyh1024 modify your build.gradle file to support AndroidX and API level 28. it worked fine after modify.