Android开发的问题

发布于 2024-12-23 04:30:02 字数 468 浏览 0 评论 0原文

我想开始android开发,所以我买了一个三星Galaxy Player来调试。从那时起,我只遇到了问题。这是一个快速概述:

我正在使用带有 Eclipse 的 Android 插件:

  • 代码编译,但模拟器不运行代码,它只是不执行任何
  • Eclipse 无法识别我的 Android 设备

操作 就我的设备而言,

  • :调试是打开,打开未知来源等。adb
  • shell 无法识别我的设备,
  • 我从 SDK 下载的 google USB 驱动程序将无法工作。
  • 当我尝试加载我的 .apk 文件时,我的设备显示“解析错误

”知道这是浆液问题很多,但归结为一件事:没有任何效果!在模拟器或设备上。我非常沮丧,我只想看到一些东西起作用!因此,任何帮助将不胜感激!

更新:我现在几乎完成了所有工作,感谢所有提供帮助的人!

I wanted to get started in android development, so I bought a Samsung Galaxy Player to debug on. Since then, I have only encountered problems. Here's a quick rundown:

I am using the android plug-in with eclipse:

  • code compiles, but the emulator doesn't run the code, it just does nothing
  • eclipse doesn't recognize my android device

as far as my device goes:

  • debugging is turned on, unknown sources on, etc.
  • the adb shell doesn't recognize my device
  • the google USB drivers i downloaded from the SDK will not work'
  • When I try to load my .apk file, my device says, "Parsing Error"

I know this is a slurry of problems, but it comes down to one thing: nothing works! On the emulator or device. I am extremely frustrated and I just want to see something work! So any help would be greatly appreciated!!!

UPDATE: I got pretty much everything to work now, thanks to all those who helped!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

箹锭⒈辈孓 2024-12-30 04:30:02

问题 2 和 5 的答案是:您需要从三星网站下载三星 Galaxy 驱动程序,谷歌 USB 驱动程序不适用于三星 Galaxy。

Answer for issue 2&5 are: You need to downloaded Samsung galaxy drivers from samsung website, google usb driver won't work for samsung galaxy.

剩一世无双 2024-12-30 04:30:02

您需要获取 Samsung OEM 驱动程序:

http://www.samsung.com/us/support/下载

以下是有关如何安装它们的链接:

http://developer.android.com/sdk/win-usb.html#InstallingDriver

you need to get the Samsung OEM drivers:

http://www.samsung.com/us/support/downloads

Here is a link on how to install them:

http://developer.android.com/sdk/win-usb.html#InstallingDriver

人生百味 2024-12-30 04:30:02

Eclipse 插件是 Android SDK 工具的包装,因此首先查看是否可以使用这些工具可能会更简单。

首先,使用android程序(在SDK的tools目录下)创建一个项目:(

android create project \
--target 1 \
--name MyAndroidApp \
--path ./MyAndroidAppProject \
--activity MyAndroidAppActivity \
--package com.example.myandroid

文档:http://developer.android.com/guide/developing/projects/projects-cmdline.html。)

它会生成一个 build.xml 文件,您可以用于构建和安装您的应用程序Ant
输入 ant debug 来构建您的项目。
模拟器启动后(可能需要几分钟),运行 ant debug install 在模拟设备上安装您的应用程序(如果您只运行一个模拟器,则无需执行任何其他操作) )。
您现在应该会看到您的应用程序模拟设备的菜单。

(文档:http://developer.android.com/guide/developing/建筑/building-cmdline.html。)

The Eclipse plug-in is wrapper around the Android SDK tools, so it may be more simple to first see if you can get these tools to work.

First, use the android program (in the tools directory of the SDK) to create a project:

android create project \
--target 1 \
--name MyAndroidApp \
--path ./MyAndroidAppProject \
--activity MyAndroidAppActivity \
--package com.example.myandroid

(Documentation : http://developer.android.com/guide/developing/projects/projects-cmdline.html.)

It generates a build.xml file that you can use to build and install your application with Ant.
Type ant debug to build your project.
Once the emulator is launched (it may take a few minutes), run ant debug install to install your application on the emulated device (you don't have to do anything else if you have only one emulator running).
You should now see your application the menu of the emulated device.

(Documentation: http://developer.android.com/guide/developing/building/building-cmdline.html.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文