scientifichackers / flutter_cognito_plugin

An AWS cognito plugin for flutter
GNU Lesser General Public License v3.0
60 stars 28 forks source link

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

Open gusdoe opened 4 years ago

gusdoe commented 4 years ago

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.

BUILD FAILED in 36s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 37.4s Gradle task assembleRelease failed with exit code 1

Sprechen commented 4 years ago

I have exactly the same problem.

Sprechen commented 4 years ago

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

arielcosep11796 commented 4 years ago

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