小编awe*_*ley的帖子

Android Studio无法在设备上运行应用程序:卡在"等待进程:<项目>"

当我尝试在我的三星Galaxy S4上调试我的应用程序时,我得到了这个输出:

Waiting for device.
Target device: samsung-samsung_sgh_i337-8c8aa2c7
Uploading file
    local path: C:\Users\awebberley\AndroidStudioProjects\Contacts\app\build\apk\app-debug-unaligned.apk
    remote path: /data/local/tmp/org.intracode.contacts
Installing org.intracode.contacts
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/org.intracode.contacts"
pkg:/data/local/tmp/org.intracode.contacts
Success


Waiting for process: org.intracode.contacts
Run Code Online (Sandbox Code Playgroud)

它只是停留在"等待进程"消息而不运行应用程序.我是Android开发的新手,有什么我想念的吗?

仅供参考,我之前能够在模拟器中启动应用程序,但在我尝试了这个并返回模拟器之后,出现了相同的"等待进程"消息.

这是我的manifest.xml文件:

<?xml version="1.0" encoding="utf-8"?>
Run Code Online (Sandbox Code Playgroud)

<application
    android:debuggable="true"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="org.intracode.contacts.MainActivity"
        android:launchMode="standard"
        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>
Run Code Online (Sandbox Code Playgroud)

这是我唯一的java文件:

package org.intracode.contacts;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText; …
Run Code Online (Sandbox Code Playgroud)

debugging android android-4.4-kitkat

11
推荐指数
2
解决办法
3万
查看次数

标签 统计

android ×1

android-4.4-kitkat ×1

debugging ×1