Ankit Srivastava Ankit Srivastava - 1 year ago 63
Android Question

Accidental changes in BuildConfig.java, unable to restore

Even after editing, the moment i build gradle it is restored.
buildConfig.java
build.gradle

Answer Source

BuildConfig.java is generated by Android build tools. Any modification to the file will be gone when configuration is done.

Btw, It looks like you have a UNIQUE_FIREBASE_ROOT_URL property under buildTypes.debug;

buildTypes {
    debug {
        buildConfigField "String", "UNIQUE_FIREBASE_ROOT_URL", "https://~~~~"
    }
}

The url part should be written like this: '"http://~~~~"' (surround it by single quotation marks again)