Closed vilorel closed 12 months ago
@vilorel I have tried to reproduce the issue without success. It seems to be a problem with your gradle version.
Go to/android/gradle/wrapper/gradle-wrapper.properties
and try to use
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
@darwin-morocho thank you for the swift response. I followed your advice and downgraded my gradle from 7.6.1 to 7.5 but I get the same error. Any other clues as to what might be causing this?
Maybe your android/build.gradle
is wrong please check the example https://github.com/darwin-morocho/flutter-facebook-auth/blob/master/examples/with_provider/android/build.gradle
Please try to tun the example https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/examples/with_provider and let me know if you still are not able to compile the project
Also you can try running flutter clean
if this does not work you can try cleaning the Gradle cache on Android
I tried the above example on my macOS and Ubuntu. The latter is building find on Ubuntu but macOS faces the same issue (which appears to be connected to gradle somehow). I tried using both the wrapper itself and installing a wrapper via the gradle command. Both failed with the above error showing up.
@vilorel could you try with flutter_facebook_auth 5.0.10 ?
@darwin-morocho I tried it with flutter_facebook_auth 5.0.11, and the issue has been addressed. Unfortunately, I made several changes to address some other issues too, and I'm not entirely sure if the version upgrade alone or the combination of changes delivered the fix. In any case, I'm glad it's working nicely now. We can close this ticket, and thank you for your help!
What version are you using?
5.0.8
What OS and version are you using to local deploy your application?
macOS 13.3.1
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
Expected Behavior
To compile without problems.
To Reproduce
Just download the latest version of flutter, this plugin and try to build for android. The same error occured with the firebase packages too but the most recent version that was pushed out fixed the issue.
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
MainActivity.java
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response