Michael m.
Michael m.

Reputation: 191

adb: failed to install

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

Upvotes: 2

Views: 18953

Answers (3)

Moaz El-sawaf
Moaz El-sawaf

Reputation: 3039

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.

Upvotes: 1

RománFvckYeah
RománFvckYeah

Reputation: 9

Only increase the storage size of your device

enter image description here

Upvotes: 0

prashantwosti
prashantwosti

Reputation: 1010

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>

Upvotes: 2

Related Questions