Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator has old versions of application

I am testing my Android application on an emulator through Android Studio. A month back I setup my emulator, did some tests, etc. I have changes to the codebase during the last month, have tested on a device, and want to test against the emulator because it has an earlier API than my device.

When I run the emulator it has an earlier version of the application. For instance I have changed the app icon but in the emulator the icon is the default Android one.

Are there specific steps I have to take to push my updated version to the emulator?

like image 580
andrewb Avatar asked Mar 01 '15 18:03

andrewb


People also ask

How do you fix this app was built for an older version of Android?

This message displays the following information: "This app was built for an older version of Android and may not work properly. Try checking for updates, or contact the developer." This dialog box can be bypassed by simply clicking "OK" and the App will work as usual when bypassed.

How can I change my Android Emulator version?

Launch the emulator, tap "..." on the right-hand side panel, click Help > About. Go to Android Studio > Preferences, search for "Android SDK", click "SDK Tools", and then scroll to Android Emulator. On Mac, go to Terminal and run ~/Library/Android/sdk/emulator/emulator -version.


1 Answers

Open AVD Manager in AS: Tools -> Android -> AVD Manager and select Wipe Data from pull down menu on desired AVD. That will reset your AVD to initial state and remove any installed versions of your app.

enter image description here

like image 176
Dalija Prasnikar Avatar answered Sep 27 '22 18:09

Dalija Prasnikar