decodedhealth / flutter_zoom_plugin

Flutter plugin for zoom
Apache License 2.0
125 stars 83 forks source link

ERROR[Android] Sdk Location not found #45

Open milzamhibatullah opened 4 years ago

milzamhibatullah commented 4 years ago

Your Environment

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.5) [✓] Android Studio (version 4.0) [✓] VS Code (version 1.41.1) [✓] Connected device (2 available)

• No issues found!


## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat -s TSLocationManager
-->
<details>
    <summary>Logs</summary>

``` <!-- syntax-highligting:  DO NOT REMOVE -->
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /Users/milzlaps/.gradle/caches/transforms-2/files-2.1/57706c5fc98d3a3ce35c81f0d5d3c506/jetified-mobilertc/AndroidManifest.xml:129:9-133:51: AAPT: error: attribute android:foregroundServiceType not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin flutter_zoom_plugin...
Running Gradle task 'assembleAarRelease'...

Finished with error: The plugin flutter_zoom_plugin could not be built due to the issue above.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'flutter_zoom_plugin'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/milzlaps/Documents/flutter/.pub-cache/git/flutter_zoom_plugin-1647c9e48d2f31da434a777037d949ed3f3391ff/android/local.properties'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

sani2608 commented 4 years ago

I am getting same error.

azackmatoff commented 4 years ago

Have the same error. Flutter doctor is showing no problems

azackmatoff commented 4 years ago

Solved issue! Copied my local.properties file from project, and pasted it under main flutter folder, under .pub_cache, under zoom package, under android folder just like in the main project. It worked.

kevinbayes commented 4 years ago

@azackmatoff excellent. Did that help everyone?

sj210 commented 4 years ago

Solved issue! Copied my local.properties file from project, and pasted it under main flutter folder, under .pub_cache, under zoom package, under android folder just like in the main project. It worked.

where are you reffering when you say main flutter folder under .pub-cache . Can you give a screenshot?

MacaCar96 commented 3 years ago

Yo también tuve el mismo error cuando trataba de compilar mi proyecto con Zoom. Buscando en diversos foros encontré la solución, la cual a mí me funciono. Lo que hice fue cambiar mi compileSdkVersion 28 a compileSdkVersion 29 y el targetSdkVersion 28 a targetSdkVersion 29. Les dejo una camtura de pantalla. La ruta del archivo es la siguiente: /tu_proyecto/android/app/build.gradle image

AjiSuryawan commented 3 years ago

I solved this problem by increasing the min sdk first, and then copy paste the flutter_zoom_plugin: again