Adb transfer protocol error. No such file or directory

I tried to run the Android application in the emulator using intelliJ 13, and I configured the emulator to Nexus 4running android 4.4.2with ARMcpu and I got the following errors:

    Waiting for device.
    "C:\Program Files (x86)\Android\android-sdk\tools\emulator.exe" -avd MyAVD0 -netspeed full -netdelay none

    Device connected: emulator-5554
    Device is online: emulator-5554
    Target device: MyAVD0 [emulator-5554]
    Uploading file
local path: C:\Users\daiyue\IdeaProjects\HelloDroid\out\production\HelloDroid\HelloDroid.apk
remote path: /data/local/tmp/com.example.HelloDroid
    Adb Transfer Protocol Error.
    No such file or directory

Below is mine manifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.HelloDroid"
      android:versionCode="1"
      android:versionName="1.0">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19"/>
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
    <activity android:name=".MyActivity"
              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>
</manifest>

The emulator did not show anything on the screen, only when I pressed the hardware button to turn on the emulator, and the "android" logo appeared and stayed forever.

I built the application using Android SDK 4.4.2 api.

So, the work around is to remove MyAVD0in C:\Users\username\.android\avdand recreate MyAVD0using Android AVD Manager.

+3
source share

All Articles