adb服务器已过期。杀戮......无法绑定&#t; tcp:5037'在ubuntu 14.04 LTS中,ADB服务器没有启动守护进程*

时间:2015-07-18 05:46:31

标签: android eclipse sdk adb genymotion

我无法在笔记本电脑上运行Android应用程序。 Eclipse不断给出相同的错误,即" ADB服务器没有"

当我设法启动adb服务器并重新打开eclipse时,只要我运行android应用程序,同样的错误就会出现在控制台上;亚行服务器没有回应。

除了重启adb

之外,你能说出一个主意吗?

7 个答案:

答案 0 :(得分:14)

您需要将SDK的adb路径设置为Genymotion。默认情况下,Genymotion使用自己的ADB工具(出于多种原因)。如果两个二进制文件不兼容(如果您的Android SDK平台工具或Genymotion暂时没有更新),则会出现此问题。

要解决此问题,您可以从Android SDK中定义特定的一个。要指定自定义ADB工具:

  1. Open Genymotion>设置> ADB。
  2. 选中使用自定义Android SDK工具。
  3. 单击“浏览”指定Android SDK的路径。
  4. 单击“确定”。

答案 1 :(得分:14)

如果您有1.0.31或更低的

,请将adb更新为1.0.32
adb version
Android Debug Bridge version 1.0.31
wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
sudo mv adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
adb version
Android Debug Bridge version 1.0.32

答案 2 :(得分:8)

对我来说问题是我正在尝试使用2个adb进程

sudo apt-get remove adb android-tools-adb android-tools-fastboot

然后转到您的sdk并运行./adb start-server

答案 3 :(得分:3)

试试吧!!!

在\ platform-tools \

中发出kill和start命令
#pragma once
#include <stdlib.h>
#include <iostream>
#include <random>
#include <cassert>

#include "vec2.h"
#include "vec3.h"
#include "vec4.h"
#include "mat4.h"
#include "transformations.h"

#if defined(_MSC_VER)
#include <windows.h>
#include <glew.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <SDL.h>
#include <SDL_ttf.h>
#include <SDL_image.h>
#include <SDL_mixer.h>
#include <SDL_opengl.h>
#include <stdio.h>
#include <string>
#endif

#if __APPLE__
#include <SDL2/SDL.h>
#include <SDL2_image/SDL_image.h>
#include <SDL2_ttf/SDL_ttf.h>
#include <SDL2_mixer/SDL_mixer.h>
#endif

#if __ANDROID__
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
#endif

// vec2 *screen;
/*const*/ // int sw;
/*const*/ // int sh;

#if __IPHONEOS__ || __ANDROID__
#define MOBILE 1
#endif

#if __MACOSX__ || __WINDOWS__ || __LINUX__
#define PC 1
#endif

#if __IPHONEOS__
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
inline void glBindVertexArray(GLuint id1) {
   glBindVertexArrayOES(id1);
}
inline void glGenVertexArrays(GLsizei n, GLuint *ids) {
   glGenVertexArraysOES(n, ids);
}
inline void glDeleteVertexArrays(GLsizei n, const GLuint *ids) {
   glDeleteVertexArraysOES(n, ids);
}
#elif TARGET_OS_MAC
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
inline void glBindVertexArray(GLuint id1) {
   glBindVertexArrayAPPLE(id1);
}
inline void glGenVertexArrays(GLsizei n, GLuint *ids) {
   glGenVertexArraysAPPLE(n, ids);
}
inline void glDeleteVertexArrays(GLsizei n, const GLuint *ids) {
   glDeleteVertexArraysAPPLE(n, ids);
}

#elif __ANDROID__
#include <GLES3/gl3.h>
#include <GLES3/gl3ext.h>
    inline void glBindVertexArray(GLuint id1) {
        glBindVertexArrayOES(id1);
    }
    inline void glGenVertexArrays(GLsizei n, GLuint *ids) {
        glGenVertexArraysOES(n, ids);
    }
    inline void glDeleteVertexArrays(GLsizei n, const GLuint *ids) {
        glDeleteVertexArraysOES(n, ids);
    }
#endif // ANDROID


inline string get_path(string filename) {
   char *base = SDL_GetBasePath();
   string path(base + filename);
   SDL_free(base);
   //cout << "getting path " << path << endl;
   return path;
}

using namespace std;

在这种情况下转到你指定的sdk这里我使用C:\ sdk但你必须去SDK和杀死服务器的地方。

让我知道它是否有效。

答案 4 :(得分:1)

有时候,喜欢或不喜欢。 “adb kill-server”命令没有效果。

所以,请尝试其他方式

taskkill /f /im "adb.exe"
adb start-server
timeout 5
adb devices
pause

将其复制到记事本并保存,扩展名为“.bat”

ex:re-start.bat

现在,您可以通过双击文件来快速重启adb !!!

答案 5 :(得分:1)

For users of Genymotion, just do this:

ps aux | grep adb

Then look at /home/root/Android/Sdk/platform-tools/adb.

Copy and paste it to your terminal:

exa:-   /home/buffer/Android/Sdk/platform-tools/adb   devices

Hopefully you will see:

your ip address:5555    device

答案 6 :(得分:0)

面对同样的问题,执行以下步骤可以正常工作

sudo cp /home/username/Android/Sdk/platform-tools/adb /usr/bin/adb

sudo chmod +x /usr/bin/adb

就是这样,您的adb将可以正常工作

相关问题