Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: package com.pycampers.flutter_cognito_plugin does not exist #19

Open
gusdoe opened this issue Jan 8, 2020 · 3 comments
Open

Comments

@gusdoe
Copy link

gusdoe commented Jan 8, 2020

Hi

I am trying to build your example app but when I did, confronted with the following error. What have I done wrong?

xxxxx\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:17: error: package com.pycampers.flutter_cognito_plugin does not exist
com.pycampers.flutter_cognito_plugin.FlutterCognitoPlugin.registerWith(shimPluginRegistry.registrarFor("com.pycampers.flutter_cognito_plugin.FlutterCognitoPlugin"));
^
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileReleaseJavaWithJavac'.

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 36s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 37.4s
Gradle task assembleRelease failed with exit code 1

@Sprechen
Copy link

I have exactly the same problem.

@Sprechen
Copy link

Additional info: when building the app in debug, the app works correctly.

@arielcosep11796
Copy link

Additional info: when building the app in debug, the app works correctly.

add this to your proguard-rules.pro under your android/app directory.

-keep class com.pycampers.** { ; }
-keep class com.amazonaws.
* { ; }
-keep class com.amazon.
* { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants