我正在构建一个Android应用程序(使用Android Studio 1.1.0),我试图测试我的应用程序的设备是三星笔记10.1 N8000(Api 16)。当我点击错误按钮时,一切都成功编译,但在设备下的Android选项卡下,它表示没有可调试的应用程序。我尝试了各种解决方案,但都没有工作。没有可调试的应用程序
事件日志中这样说:
7:09:54 AM Session 'app': running
7:11:25 AM Gradle build finished in 28 sec
这里是我的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fatima.selfify"
android:launchMode="standard">
<application>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
<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" >
</activity>
</application>
</application>
</manifest>
这是我的构建文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.fatima.selfify"
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug{
debuggable true
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
}
No apk changes detected. Skipping file upload, force stopping package instead.
DEVICE SHELL COMMAND: am force-stop com.fatima.selfify
Waiting for process: com.fatima.selfify
您是否正在运行AS或Eclipse的任何其他实例?您的设备是否显示在Android监视器中? – Sufian
你尝试过其他设备(或两个)吗?有时设备被OEM(三星)修改并且有这个问题。 –