Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下这个debug文件夹作用是什么,为什么要不把这个类直接放到main目录下,而是拿出来放在debug下面???还有就是这个debug目录是工具生成的嘛,还是自己手动添加的 #34

Closed
ZhangPeng0220 opened this issue Feb 23, 2018 · 2 comments

Comments

@ZhangPeng0220
Copy link

c j7 0lay fb6vul9 d o4

@ZhangPeng0220 ZhangPeng0220 changed the title 请问一下这个debug文件夹作用是什么,为什么要不把这个类直接放到main目录下,而是拿出来放在debug下面 请问一下这个debug文件夹作用是什么,为什么要不把这个类直接放到main目录下,而是拿出来放在debug下面??? Feb 23, 2018
@ZhangPeng0220 ZhangPeng0220 changed the title 请问一下这个debug文件夹作用是什么,为什么要不把这个类直接放到main目录下,而是拿出来放在debug下面??? 请问一下这个debug文件夹作用是什么,为什么要不把这个类直接放到main目录下,而是拿出来放在debug下面???还有就是这个debug目录是工具生成的嘛,还是自己手动添加的 Feb 23, 2018
@iMeiji
Copy link
Owner

iMeiji commented Feb 23, 2018

@ZhangPeng0220 这叫 gradle 差异化构建,src 目录下的 debug,release 都是手动创建的,因为 com.facebook.stetho:stethocom.squareup.okhttp3:logging-interceptor 是通过 debugCompile 方式引入,只会在 debug 版本引入,如果写在 main 目录下编译 release 版本就提示找不到该类

@ZhangPeng0220
Copy link
Author

佩服,真是佩服

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants