开发者

run a debug mode through command line in Maven android project

开发者 https://www.devze.com 2023-03-22 09:56 出处:网络
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 f

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

精彩评论

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

关注公众号