Adb Transfer Protocol Error. No such file or directory

点点圈 提交于 2019-12-06 08:41:23

问题


I tried to run my android app in a emulator using intelliJ 13, and I configured the emulator to be a Nexus 4 running android 4.4.2 with ARM cpu, and I got the follow 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

The following is my 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 showed nothing on screen as well, only when I pressed hardware button to switch on the emulator and only 'android' logo showed up and stayed forever.

I built the app using Android SDK 4.4.2 api.

So the work around is to delete the MyAVD0 in C:\Users\username\.android\avd, and recreate MyAVD0 again using Android AVD Manager.

来源:https://stackoverflow.com/questions/21100834/adb-transfer-protocol-error-no-such-file-or-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!