Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

AndroidX compatibility #104

Closed codemasterover9000 closed 4 years ago

codemasterover9000 commented 5 years ago

Hi,

I'm trying to integrate login into my app. But when building I get an error related to AndroidX. Im using simple_auth 2.0.5 and simple_auth_flutter 2.0.4.

Launching lib\main.dart on Android SDK built for x86 64 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

FAILURE: Build failed with an exception.

...

BUILD FAILED in 6s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.557], locale nl-NL)
    • Flutter version 1.5.4-hotfix.2 at C:\dev\tools\flutter
    • Framework revision 7a4c33425d (2 months ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\codemasterover9000\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Java\jdk1.8.0_102\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
    • All Android licenses accepted.
CoreyCole commented 5 years ago

Hey @codemasterover9000 have you followed the flutter documentation on migrating your flutter project to use android x? https://flutter.dev/docs/development/androidx-migration

codemasterover9000 commented 4 years ago

Hi, I think that was the problem indeed. Closing this issue.