如何调试APK签署释放? [英] How to debug apk signed for release?
问题描述
我有我已经签署并上传到Android市场,并安装在手机上的APK。我想,而这是在我的手机上运行调试这个版本APK(由Eclipse的手段)。我以前做过这个(并记住它的Android开发工具之一是,也许是的Dalvik调试监视器),但遗憾的是不记得如何做到这一点,并一直无法找到任何物品在线。有谁知道如何可以做到这一点?
注意:我的有无的设置
机器人:可调试=真正的
在清单中,并启用了USB调试在我的手机上。
确保机器人:可调试=真正的
中设置了应用
标记的清单文件,然后:
- 将您的手机变成电脑,并启用USB调试在手机上
- 开启日食和包含code为您的应用程序工作区
- 在Eclipse中,转到窗口 - >显示视图>设备
- 看那设备视图现在应该是可见的,你应该可以看到你的设备上市
- 如果您的设备不在列表中,你将不得不继续之前追查ADB驱动程序为您的手机
- 如果您想要的地方逐步完成code,设置一个断点在你的应用程序
- 在您的手机上打开应用程序
- 在设备视图中,展开您的电话条目,如果它尚未展开,并期待为您的应用程序包名称。
- 单击包名,并在设备的右上角查看您应该看到一个绿色的错误以及其他一些小按钮。点击绿色的错误。
- 您现在应该连接/调试您的应用程序。
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:
- Plug your phone into your computer and enable USB debugging on the phone
- Open eclipse and a workspace containing the code for your app
- In Eclipse, go to Window->Show View->Devices
- Look at the Devices view which should now be visible, you should see your device listed
- If your device isn't listed, you'll have to track down the ADB drivers for your phone before continuing
- If you want to step through code, set a breakpoint somewhere in your app
- Open the app on your phone
- In the Devices view, expand the entry for your phone if it isn't already expanded, and look for your app's package name.
- 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.
- You should now be attached/debugging your app.
这篇关于如何调试APK签署释放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!