如何在AndroidStudio中调试注释处理器?

时间:2017-07-06 07:27:18

标签: android debugging annotations

1.我将以下内容写入档案~/User/myname/.gradle/gradle.properties

org.gradle.daemon=true org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

  1. 我运行gradle --daemon

  2. Edit Configurations...,添加远程调试器,端口为5005

  3. 最后,我重建了项目,但抛出了一些异常:

    Error:Failed to complete Gradle execution.
    
    Cause:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html
    Please read the following process output to find out more:
    -----------------------
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
    

0 个答案:

没有答案