java - Android Emulator in Android Studio does not show my app -
i'm working on android application using android studio. when run code on nexus 5 api 21 x86 emulator, emulator not show application trying debug. went applications, still cannot find app trying test. however, emulator still show app previous project working on. log doesn't show errors either when compiling gradle , starting emulator.
from researching other posts, believe may have version of emulator running. not sure if case , if how fix it. have pasted copy of manifest below , gradle.build. please let me know wrong, problem has been irritating me last several days.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jamescho.androidgame" android:versioncode="1" android:versionname="0.5" > <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <application android:icon="@drawable/bxbx_char" android:label="bxbx"> <activity android:name="com.bxbx.bxbxgame.game" android:configchanges="keyboard|keyboardhidden|orientation" android:label="bxbx" android:screenorientation="portrait"> <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.launcher"/> </intent-filter> </activity> </application> </manifest>
and build.gradle
apply plugin: 'com.android.application' android { compilesdkversion 17 buildtoolsversion "19.1.0" defaultconfig { applicationid "com.jamescho.androidgame" minsdkversion 8 targetsdkversion 17 } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:support-v4:18.+'
from android studio, go avd manager (tools>android>avd). locate virtual device, , under actions, select downward triangle , hit wipe data. should remove old test apk.
if old app still there, try deleting old virtual device , creating new one. if still there, selecting wrong virtual device when starting app.
you should try clearing default testing device. under run>edit configurations, select default run configuration. on general tab, go bottom under deployment target options , select open select target deployment dialog, save , try again.
Comments
Post a Comment