Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Gradle not working

Good Afternoon Programers. I walked away from my code on Thursday with no problem or errors. Then today, when I open up Android Studio I get that the grade project sync failed. I tracked the errors util I reached the file BuildConfig.java. I notice none of the key words like String, Debug and the others are not being read properly. Ive tried just about everything I know so please if you know anything that would help pls post ASAP.

Heres the BuildConfig.java

/**
 * Automatically generated file. DO NOT MODIFY
 */
package com.teamtreehouse.funfacts;

  public final class BuildConfig {
  public static final boolean DEBUG = Boolean.parseBoolean("true");
  public static final String PACKAGE_NAME = "com.teamtreehouse.funfacts";
  public static final String BUILD_TYPE = "debug";
  public static final String FLAVOR = "";
  public static final int VERSION_CODE = 1;
  public static final String VERSION_NAME = "1.0";
}

1 Answer

Have you tried to rebuild and clean project?