如何调试APK签署释放? [英] How to debug apk signed for release?

查看:177
本文介绍了如何调试APK签署释放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我已经签署并上传到Android市场,并安装在手机上的APK。我想,而这是在我的手机上运行调试这个版本APK(由Eclipse的手段)。我以前做过这个(并记住它的Andr​​oid开发工具之一是,也许是的Dalvik调试监视器),但遗憾的是不记得如何做到这一点,并一直无法找到任何物品在线。有谁知道如何可以做到这一点?

  

注意:我的有无的设置机器人:可调试=真正的在清单中,并启用了USB调试在我的手机上。

解决方案

确保机器人:可调试=真正的中设置了应用标记的清单文件,然后:

  1. 将您的手机变成电脑,并启用USB调试在手机上
  2. 开启日食和包含code为您的应用程序工作区
  3. 在Eclipse中,转到窗口 - >显示视图>设备
  4. 看那设备视图现在应该是可见的,你应该可以看到你的设备上市
  5. 如果您的设备不在列表中,你将不得不继续之前追查ADB驱动程序为您的手机
  6. 如果您想要的地方逐步完成code,设置一个断点在你的应用程序
  7. 在您的手机上打开应用程序
  8. 在设备视图中,展开您的电话条目,如果它尚未展开,并期待为您的应用程序包名称。
  9. 单击包名,并在设备的右上角查看您应该看到一个绿色的错误以及其他一些小按钮。点击绿色的错误。
  10. 您现在应该连接/调试您的应用程序。

I have an apk which I've signed and uploaded to Android Market, and installed on my phone. I would like to debug this release apk (by means of Eclipse) whilst it is running on my phone. I have done this before (and remember it being with one of the Android development tools; perhaps Dalvik Debug Monitor) but unfortunately cannot remember how to do it and have been unable to find any articles online. Does anyone know how this can be done?

Note: I have set android:debuggable="true" in the manifest and have enabled USB Debugging on my phone.

解决方案

Be sure that android:debuggable="true" is set in the application tag of your manifest file, and then:

  1. Plug your phone into your computer and enable USB debugging on the phone
  2. Open eclipse and a workspace containing the code for your app
  3. In Eclipse, go to Window->Show View->Devices
  4. Look at the Devices view which should now be visible, you should see your device listed
  5. If your device isn't listed, you'll have to track down the ADB drivers for your phone before continuing
  6. If you want to step through code, set a breakpoint somewhere in your app
  7. Open the app on your phone
  8. In the Devices view, expand the entry for your phone if it isn't already expanded, and look for your app's package name.
  9. Click on the package name, and in the top right of the Devices view you should see a green bug along with a number of other small buttons. Click the green bug.
  10. You should now be attached/debugging your app.

这篇关于如何调试APK签署释放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆