Reputation: 807
I am new to CentOS and I want to install an APK in the emulator using ADB. Using terminal, I used this syntax:
adb install <nameofapk>.apk
That command gave me this error :
Whoops: didn't find expected signature
read_central_directory_entry failed
file '<nameofapk.>.apk' is not a valid zip file
rm failed for /data/local/tmp/<nameofapk>.apk, No such file or directory
What do i need to do to get rid of that error message and be able to successfully install the APK?
Upvotes: 1
Views: 2419
Reputation: 10597
Probably your APK file is invalid or corrupted, that's why it can't be installed. Try
unzip -t <nameofapk>.apk
to see if there's something wrong with your file.
Upvotes: 1