MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
275 stars 246 forks source link

Not able to build flutter project with flutter_appauth package ( package io.crossingthestreams.flutterappauth does not exist ) #156

Closed SameerChorge94 closed 4 years ago

SameerChorge94 commented 4 years ago

Hello,

Description: I tried to setup the flutter_appauth package in flutter project, but getting below error while building the project.

Error:

<PROJECT_DIRECTORY_PATH>\flutter_keycloak_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:16: error: package io.crossingthestreams.flutterappauth does not exist
    flutterEngine.getPlugins().add(new io.crossingthestreams.flutterappauth.FlutterAppauthPlugin());
                                                                           ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 4m 24s
Exception: Gradle task assembleDebug failed with exit code 1

As per note mentioned in the documentation app already using the AndroidX. Android gradle.properties contents:

android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true

Flutter Version:

Framework • revision 198df796aa (4 weeks ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)

flutter_appauth package version: flutter_appauth: ^0.9.2+6

MaikuB commented 4 years ago

If your app cannot see the package then you need to check your environment. It's likely it didn't pull the plugin down properly e.g. a corrupt pub cache. This isn't something I can help with