flutter_cognito_plugin icon indicating copy to clipboard operation
flutter_cognito_plugin copied to clipboard

error: package com.pycampers.flutter_cognito_plugin does not exist

Open gusdoe opened this issue 6 years ago • 3 comments

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

gusdoe avatar Jan 08 '20 16:01 gusdoe

I have exactly the same problem.

Sprechen avatar Jul 23 '20 12:07 Sprechen

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

Sprechen avatar Jul 26 '20 10:07 Sprechen

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.* { *; }

arielcosep11796 avatar Aug 03 '20 10:08 arielcosep11796