Java Adb传输协议错误。没有这样的文件或目录
我尝试使用Java Adb传输协议错误。没有这样的文件或目录,java,android,intellij-idea,android-emulator,Java,Android,Intellij Idea,Android Emulator,我尝试使用intellij13在模拟器中运行我的android应用程序,并将模拟器配置为nexus4运行android 4.4.2,使用ARMcpu,我得到以下错误: Waiting for device. "C:\Program Files (x86)\Android\android-sdk\tools\emulator.exe" -avd MyAVD0 -netspeed full -netdelay none Device connected: emulator-
intellij13
在模拟器中运行我的android应用程序,并将模拟器配置为nexus4
运行android 4.4.2
,使用ARM
cpu,我得到以下错误:
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
以下是我的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>
模拟器在屏幕上也没有显示任何东西,只是当我按下硬件按钮打开模拟器时,只有“android”徽标出现并永远停留在屏幕上
我使用Android SDK 4.4.2 api构建了这个应用程序
因此,解决方法是删除
C:\Users\username\.android\avd
中的MyAVD0
,然后使用android avd Manager
重新创建MyAVD0,我建议您检查adb是否正常工作。我认为问题似乎不在于模拟器本身,而在于HelloDroid示例的上传。尝试在不加载应用程序的情况下设置仿真器,然后将应用程序推到带有adb的仿真器上-然后查看它是否有效。@XWaveX所以我删除了MySVD0
,然后再次创建它,它就起作用了,什么是adb?我正在使用win7 x64上的intelliJ 13
,您也可以尝试在AVD管理器中为您的模拟器添加或增加SD存储大小。(或者你的apk被损坏了?)ADB(Android调试桥)用于调试。您可以远程安装应用程序、浏览存储、记录调试消息等@XWaveX实际上是用安卓4.4.2将MyAVD0设置为Nexus 4,然后我用安卓2.2将其更改为通用QVGA,这一次给了我“AVD MyAVD0无效:自AVD创建以来,QVGA配置中的通用2.7发生了变化。”,所以我用安卓4.4.2把它改回了Nexus 4,然后我遇到了文章中描述的问题,所以我猜是因为AVD文件被破坏了,所以删除可能会起作用。