我目前正在使用Android Studio的Android应用程序。当我在Nexus 5 API 21 x86仿真器上运行我的代码时,仿真器不显示我正在尝试调试的应用程序。我进入了所有的应用程序,但我仍然无法找到我想要测试的应用程序。但是,模拟器仍然会显示我正在处理的以前项目中的应用程序。在编译gradle和启动模拟器时,日志不会显示任何错误。Android Studio中的Android模拟器不显示我的应用程序
从研究其他职位,我相信这可能与我正在运行的模拟器的版本有关。我不确定是否是这种情况,以及我是如何解决这个问题的。我已经粘贴了我的清单副本和我的gradle.build。请让我知道什么是错的,这个问题在过去几天一直让我感到恼火。
<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>
而且的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.+'
看着gradle信息(Android Studio的底部)它安装成功吗? – auval