Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PackageParserException: Package ...base.apk has no certificates at entry AndroidManifest.xml

I'm running my app in debug mode and it's ok. But when I sign it and try to install apk, this error happens in Logcat, and phone shows "App is not installed".

This is the same on every phone with <7.0 android, so I thought the problem is in app signature, but I've tried both V1, V2, only V1 - seems like android studio doesn't even recognise that I changed something.

Tried to disable V2 completely with this, but no luck.

signingConfigs{
    release {
        storeFile file("keystore.jks")
        storePassword 'password'
        keyAlias 'alias'
        keyPassword 'password'
        v2SigningEnabled false
    }
}

What else can I do?

C:\Program Files\Android\Android Studio\jre\jre\bin>java -version
openjdk version "1.8.0_152-release"
OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
OpenJDK 64-Bit Server VM (build 25.152-b01, mixed mode)    
like image 675
user2369 Avatar asked Jan 17 '19 14:01

user2369


1 Answers

Today I've updated Android Studio to 3.3 and encountered the same issue.

I fixed it after delete Build folder, Clean Project, Invalidate Caches/Restart. And after that I could generate signed application via Build -> Generate Signed Bundle/APK with only V1 signature.

Build signed application with signingConfigs release still doesn't work.

You can try my solution.

like image 129
AlexeyPecherey Avatar answered Oct 16 '22 09:10

AlexeyPecherey