Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install ApiDemos sample project on Android emulator

I created ApiDemos project using Eclipse - New Project - Sample command. Trying to execute it on Android emulation, I got installation error. Then I opened data/app directory in the File Explorer, DDMS, and removed two files with name starting from ApiDemos (possibly this was incorrect, but this is done already). Now, trying to execute my ApiDemos project, I have:

[2011-11-15 16:23:19 - ApiDemos] Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
[2011-11-15 16:23:19 - ApiDemos] Please check logcat output for more details.
[2011-11-15 16:23:19 - ApiDemos] Launch canceled!

LogCat:

package com.example.android.apis signatures do not match the previously installed version, ignoring!

Is it possible to correct this now? I know that I can re-create emulator, but I would like to solve this problem with existing emulator, just to know how it should be done.

like image 990
Alex F Avatar asked Nov 15 '11 14:11

Alex F


People also ask

How to open the Android Studio Emulator?

Method 1 1 Step 1: Opening Emulator#N#First of all, we need to open the Android Studio Emulator properly, so that we can see the app... 2 Step 2: Navigate to the Path below More ...

How to install APK files in Android emulator?

In the Powershell window type the following command and it will install the app in the emulator and that’s it your APK is installed in the Emulator. This method is much simpler than 1st method. We just need the APK file to install it in the Emulator.

How do I use the Android emulator with Appium?

The Android Emulator lets you develop and test Android apps without using a physical device. Once you have the Android Emulator booted or an Android Device connected that is running an AVD with API Level, then run Appium on the command line (via the appium command)

How to assign AVD port 5554 and 5556 to Android emulator?

Now Select the AVD name and click on Start/Play icon uder actions section. The default value is 5554 for the first android virtual device instance running on the your machine. If we launch an other emulator, it will be assigned with an even numbered port after 5554 i.e second emulator will be assigned with port 5556.


1 Answers

uninstall the previous api demos by your adb command

adb -e uninstall com.example.android.apis

which installed in your emulator.

or try wipe user data while launching the emulator.

like image 61
Padma Kumar Avatar answered Sep 21 '22 12:09

Padma Kumar