无法在Mac OSX 10.12.4上连接Samsung Galaxy Tab 2

时间:2017-09-01 07:16:40

标签: android macos android-studio-2.3

我无法将Android设备用于Android Studio。

我有什么:

  • Samsung Galaxy Tab 2,Android 4.1.1
  • 在Macbook Pro 2011上运行的Mac OSX 10.12.4
  • Android Studio 2.3.3
  • Android文件传输1.0

我尝试了什么:

  • 启用调试选项(开发选项),通过USB线连接设备,tutorial说"它只是工作,跳过此步骤"但它对我来说是另一个骗局(或营销噱头)。
  • 安装Android文件传输,没有运气。
  • 使用adb,但Exception in thread "main" org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/xml, type=class entities.User, genericType=class entities.User. at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:248) at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:163) at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1135) at org.glassfish.jersey.client.ClientRequest.doWriteEntity(ClientRequest.java:516) at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:498) at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:384) at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:282) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:278) at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:753) at org.glassfish.jersey.internal.Errors.process(Errors.java:316) at org.glassfish.jersey.internal.Errors.process(Errors.java:298) at org.glassfish.jersey.internal.Errors.process(Errors.java:229) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:414) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:752) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:445) at org.glassfish.jersey.client.JerseyInvocation$Builder.put(JerseyInvocation.java:334) at test.Test.main(Test.java:33) 仍然没有列出我的设备。

任何建议或调试方式都将受到赞赏。谢谢。

1 个答案:

答案 0 :(得分:0)

您是否尝试过安装adb驱动程序? 以下是:

bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/install.sh)

如果您希望以后删除它们:

bash <(curl https://raw.github.com/corbindavenport/nexus-tools/master/uninstall.sh)

希望它能解决您的问题。