Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7689617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:12:21+00:00 2026-05-31T20:12:21+00:00

My project doesn’t seem to be aware of this new constant that’s apparently auto-generated

  • 0

My project doesn’t seem to be aware of this new constant that’s apparently auto-generated in Android Tools r17 builds:

“Added a feature that allows you to run some code only in debug mode. Builds now generate a class called BuildConfig containing a DEBUG constant that is automatically set according to your build type. You can check the (BuildConfig.DEBUG) constant in your code to run debug-only functions such as outputting debug logs.”

I’ve confirmed that this class is not being auto-generated anywhere in my project by the new tools. I deleted all project outputs (including all gen folders) and rebuilt, and only R.java classes are being generated.

Why are the tools not generating the BuildConfig class? It may be relevant that I’m using IntelliJ.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:12:22+00:00Added an answer on May 31, 2026 at 8:12 pm

    IntelliJ doesn’t generate the BuildConfig java and class files.

    I assume this function is provided by the ADT plugin for Eclipse, and isn’t a part of the SDK tools/common build stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was given with a MSVC project that doesn't worked with gcc. Particularly this
i have a project that links with ICSharpCode.SharpZipLib.dll (the dll itself doesn't matter). one
I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't
Commons JCI project doesn't seem to be maintained since a long time. Are there
I updated to new Xcode 4.2 (for iOS 5), but now my project doesn't
I want to use a signals/slots library in a project that doesn't use QT.
I've noticed that plenty of opensource project doesn't use BITWISE flags anymore, even if
I am working on a fairly large C++ project which unfortunately doesn't really use
Valumes doesn't show UPLOAD button under Firefox (MVC3 Project). It works fine under: IE,
Why running debug doesn't build all selected project in the active configuration? Normally I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.