Lyokone / flutterlocation

A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.
MIT License
1.11k stars 820 forks source link

ProcessException: Process "~projectPath/android/gradlew" exited abnormally #259

Closed osmantuzcu2 closed 4 years ago

osmantuzcu2 commented 4 years ago

I crated an AndroidX project and using location package. everything is fine in IOS but I got an error in Android with gradle. I have tried "flutter clean" and delete .grandle directory and run again. But did not fix it.

My location version location: ^2.3.5 My gradle-wrapper.properties: distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip My build.gradle file

dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.3.2'
    }

My compile sdk version compileSdkVersion 29

I am using VsCode

Flutter Doctor

[✓] Flutter (Channel unknown, v1.9.1+hotfix.5, on Mac OS X 10.14.6 18G1012, locale tr-TR)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Chrome - develop for the web
[!] Android Studio (version 3.4)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.40.2)
[✓] Connected device (1 available)

My errors all text

* Error running Gradle:
ProcessException: Process "~Myprojectpath/android/gradlew" exited
abnormally:

> Configure project :app
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with
'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the
command line to display more information.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with
'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use
-Pandroid.debug.obsoleteApi=true on the command line to display more information.
  Command: ~Myprojectpath/android/gradlew app:properties
osmantuzcu2 commented 4 years ago

Additional information: When I use only location package it works but all packages not work together. I create a fresh app and add this packages it was not work.

 http: ^0.12.0+2
  google_maps_flutter: ^0.5.21+8
  location: ^2.3.5
  flutter_svg: ^0.14.4
  shared_preferences: ^0.5.4+3
  toast: ^0.1.5
  fancy_bottom_navigation: ^0.3.2
  geocoder: ^0.2.1
  validate: ^1.7.0
  fluttertoast: ^3.1.3
  rflutter_alert: ^1.0.2
  dotted_border: ^1.0.3
  community_material_icon: ^3.5.95
  numberpicker: ^1.1.0
  flutter_time_picker_spinner: ^1.0.6
  date_format: ^1.0.8
  flutter_image_compress: ^0.6.3
  image_picker: ^0.6.1
  image: ^2.1.4
  sliding_up_panel: ^0.3.6
  map_launcher: ^0.2.0
  search_map_place: ^0.1.1
  flutter_launch: ^0.2.0
  flutter_youtube: ^2.0.0
  carousel_pro: ^1.0.0
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.