开发者

run a debug mode through command line in Maven android project

I have a question that I want to debug(not Run) my Android project with Maven, How it will attached with debug开发者_StackOverflowger through command line with Maven.


I found that only way how to now force maven to compile apk in debug mode is this

  <aaptExtraArgs><aaptExtraArg>--debug-mode</aaptExtraArg></aaptExtraArgs>

in of com.jayway.maven.plugins.android.generation2 plugin

So. You can add this by default to pom.xml and create with name 'release' that will turn it off and sign it by production key.

I added request to the better support of enable debug mode:

http://code.google.com/p/maven-android-plugin/issues/detail?id=257


It doesn't matter how a process is started on the device or emulator, you can attach the debugger to any running process. From the devices view just select the process you want to debug and click on the little green bug.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜