2

Hello while trying to run my Flutter Application on Real Android device im getting following error

Launching lib/main.dart on SM G973F in debug mode...
lib/main.dart:1
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install /Users/name/Desktop/project/application/poi/build/app/outputs/flutter-apk/app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed collecting certificates for /data/app/vmdl639070508.tmp/base.apk: Failed to collect certificates from /data/app/vmdl639070508.tmp/base.apk using APK Signature Scheme v2: SHA-256 digest of contents did not verify]
Error launching application on SM T500.


I tried : updating android studio flutter upgrade flutter pub get .....

But found no solution yet Hope anyone can help

Michael m.
  • 161
  • 1
  • 3
  • 13
  • Does this answer your question? [android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify](https://stackoverflow.com/questions/68554294/androidexported-needs-to-be-explicitly-specified-for-activity-apps-targeting) – hiddeneyes02 Feb 03 '22 at 21:05
  • @hiddeneyes02 Hey I did and now updated code getting different error please check – Michael m. Feb 03 '22 at 21:11

3 Answers3

2

In your manifest, add android:exported="true".

example:

<activity
        android:name="com.example.packssas.MainActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
prashantwosti
  • 980
  • 2
  • 7
  • 17
0

Only increase the storage size of your device

enter image description here

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Sep 23 '22 at 02:35
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/32753869) – Kumar Saurabh Sep 23 '22 at 12:13
0

Check the Available Storage in the machine you are developing with, you might face this issue if you are running in low storage.

Another solution is actually a dummy one, but it works, which is to restart your machine.

Moaz El-sawaf
  • 2,306
  • 1
  • 16
  • 33