flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

A problem occurred configuring project ':google_api_availability'.

Open antoninobajeli opened this issue 8 years ago • 8 comments

🐛 Bug Report

Including the plugin I get the following error during the compilation time.

  • Error running Gradle: Exit code 1 from: myapplication/android/gradlew app:properties:

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':google_api_availability'.

Failed to notify project evaluation listener. java.lang.AbstractMethodError (no error message)

Version: 2.1.0

antoninobajeli avatar Oct 17 '18 21:10 antoninobajeli

The same problem occurred when I add geolocator: '^2.1.0' to the dependencies

natezhengbne avatar Oct 18 '18 06:10 natezhengbne

The same problem

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':google_api_availability'.

Failed to notify project evaluation listener. java.lang.AbstractMethodError (no error message)

arleyduarte avatar Oct 18 '18 13:10 arleyduarte

@antoninobajeli, @natezhengbne and @arleyduarte, can you send over the contents of your build.gradle and/or gradle-wrapper.properties files?

This is to make sure you are using the correct version of Gradle (and potentially Kotlin). More information can also be found in the posts below:

mvanbeusekom avatar Oct 19 '18 10:10 mvanbeusekom

@mvanbeusekom I think the problem is the version of Gradle. My project is work well. Thank you.

natezhengbne avatar Oct 19 '18 11:10 natezhengbne

Please @mvanbeusekom, I make all change of my Gradle and kotlin but i have the same error

MrMagloire avatar Oct 19 '18 21:10 MrMagloire

I see the same issue. Do you use firebase? I think there is a conflict with the firebase version and the google api versions.

glachac avatar Oct 19 '18 22:10 glachac

Yes I use cloud_firestore and map_view

MrMagloire avatar Oct 19 '18 22:10 MrMagloire

@mvanbeusekom I thank you very much. You helped me in finding the problem solution! In my case it has been not-sufficient changing the version numbers in build.gradle of gradle,kotlin and/ gradle-wrapper.properties. May be somthing is going wronk in my developer environment.

I solved creating a brand new project, than I changed the default build.gradle,kotlin and/or gradle-wrapper.properties version numbers.

Thanks very much !!!

antoninobajeli avatar Oct 20 '18 07:10 antoninobajeli