Coder Social home page Coder Social logo

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

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

from toutiao.

Comments (2)

iMeiji avatar iMeiji commented on August 18, 2024

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

from toutiao.

ZhangPeng0220 avatar ZhangPeng0220 commented on August 18, 2024

佩服,真是佩服

from toutiao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.