Problem:
If I want to open the APK:
- the app opens perfectly
- the screen is black
- the app goes in the background
Notes:
If I run flutter run --release
the app opens perfectly but it also shows an error:
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\Users\Flutter\StudioProjects\nomadnet2\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.apps.social_circle signatures do not match previously installed version; ignoring!]
If I run: flutter run
it works perfectly
I already tried:
- upgrade the packages
- install flutter SDK again
- update flutter
I also tried more things but I don't know them anymore
Please help me!
CodePudding user response:
Try to delete your previus APK in
C:\Users\Flutter\StudioProjects\nomadnet2\build\app\outputs\flutter-apk\app.apk
Then use the command
flutter clean
And pub get your pubspect.yaml
and try to run the release version again
CodePudding user response:
Delete your previously installed app in your phone or emulator, and run release again, probably is because a different sign key.