Closed mbarrben closed 3 years ago
Same thing in my project. @mbarrben did you find a workaround for this problem?
Unfortunately I eventually removed this plugin from my project since I didn't need it any more. However I suspect this issue is most likely related to an AGP 4.1 issue already tracked by Google and fixed on AGP 4.2. Therefore I'm closing this issue.
Hi!
I'm trying to update my project to AGP 4.1.1 but then I lose all the per variant
resValues
andBuildConfig
properties I define on those subprojects that have thegradle-properties-plugin
applied. If I remove thegradle-properties-plugin
or rollback AGP to 4.0.1,resValues
andBuildConfig
properties per variant are generated again.I managed to reproduce the issue on a very simple project:
app
modulebuild.gradle
apply the plugin and define someresValues
per variant:android { compileSdkVersion 30 buildToolsVersion "30.0.2"
}
dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.2.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2' implementation 'androidx.navigation:navigation-ui-ktx:2.2.2' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' }
But instead, only the value from the default config is generated:
Thanks in advance!