Android 安卓应用程序可以';我不能在真正的设备上运行,但能识别它
我正在尝试编写我的第一个android应用程序。 Eclipse可以识别我的手机,但无法在手机上启动应用程序。“确定”按钮无法按下 有什么想法吗? 谢谢 xml文件:Android 安卓应用程序可以';我不能在真正的设备上运行,但能识别它,android,Android,我正在尝试编写我的第一个android应用程序。 Eclipse可以识别我的手机,但无法在手机上启动应用程序。“确定”按钮无法按下 有什么想法吗? 谢谢 xml文件: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.app1" android:version
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app1"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
解决了
问题出在我的手机上。
我用另一台设备检查过,一切正常
谢谢,很抱歉打扰你
SDK
是否是最新的。如果没有更新它。安装所需的min-sdk-version
和max-sdk-version
软件包OEM驱动程序
,手机上的开发者选项是否已激活。要了解哪些是OEM驱动程序,请检查此项检查你的设备上的minSdkVersion和你当前的Android版本。它是用绿色右标记重新注册你的设备,还是用一些红色或其他颜色标记重新注册你的设备,而不是右标记?你能给我们看一下你的清单文件来验证@PozzoApps指出的内容吗。根据你的图片,我不能确定,但可能尝试重新启动或另一个驱动程序=/重新安装USB驱动程序。