Home > Mobile >  After open my app(release APK) the app goes in the background
After open my app(release APK) the app goes in the background

Time:05-20

Problem:

If I want to open the APK:

  1. the app opens perfectly
  2. the screen is black
  3. 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:

  1. upgrade the packages
  2. install flutter SDK again
  3. 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.

  • Related