3

I'm creating my first map application for Android and have followed every steps as recommended in this article from vogella and I'm unsuccessful in my case. I was facing the Google Play services is not supported by your device issue.

Then I came across the following post that suggests manually uploading few apks in the emulator to get going with the maps. I was successful till step 2 in following that post but failed in step 3 that recommends to install com.google.android.apps.maps-1.apk and com.google.android.gms-2.apk using the adb command.

I got the following issue in the command prompt

EOCD not found, not Zip
file 'D:\Program Files\Android\android-sdk-windows\apks\com.google.android.apps.maps-1.apk'
is not a valid zip file
rm failed for /data/local/tmp/com.google.android.apps.maps-1.apk, No such file or directory

I referred this, this and this but those didn't help either.

Update:

One of post that I came across recommended to email ourselves and open the email account in the emulator and download the files and then install from there. I followed the steps and was successful in having those apk files in the emulator but I faced issue when installing those. The following is the exception i received in the dialog

There is a problem parsing the package.

I believe the issue could be because of corrupted file? I have the latest SKDs updated. The emulator configuration can be seen in this screenshot

Community
  • 1
  • 1
Hemant
  • 615
  • 1
  • 8
  • 21

1 Answers1

1

I had this same problem and it turned out just to be that the actual apk file was corrupt. You should be able to open the APK on your machine using a zip file manager, if you cannot then it maybe that the file is corrupt.

Try downloading a new one again maybe from a different source and check that you can open it as a zip file before transferring.

Alex P.
  • 30,437
  • 17
  • 118
  • 169
Marc Thomas
  • 393
  • 1
  • 3
  • 16
  • In my case, downloading it via firefox allowed me to actually install the app. When i download THAT SAME apk package, i get the "parsing error". – robertjuh Jan 09 '19 at 10:11
  • For us, using the DuckDuckGo Android Browser was corrupting the APK file. Using a different one worked. – Vyrotek May 11 '22 at 18:30