Unity fail to populate gradle.propertie in gradleOut -> build fail

My gradle.properties file is

org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
org.gradle.parallel=true
android.enableR8=**MINIFY_WITH_R_EIGHT**
unityStreamingAssets=.unity3d**STREAMING_ASSETS**
# Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**

but in gradleOut in process of build in gradle.properties file I have only

org.gradle.jvmargs=-Xmx4096M
org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true

and then build failed because of:

stderr[
09:57:31
09:57:31 FAILURE: Build failed with an exception.
09:57:31
09:57:31 * Where:
09:57:31 Build file ‘C:\Work\workspace\GTA.Pipe.Rc.Client.Android\GtaClient\Temp\gradleOut\launcher\build.gradle’ line: 30
09:57:31
09:57:31 * What went wrong:
09:57:31 A problem occurred evaluating project ‘:launcher’.
09:57:31 > Could not get unknown property ‘unityStreamingAssets’ for object of type com.android.build.gradle.internal.dsl.AaptOptions.

Looks like Unity 2020.2 have bug not populating gradle properties file into build

(Case 1322114)

Hey! I’m sorry you are having this issue. Just to clarify: You are using custom gradle.properties file and this is simple Unity project (not Unity as a Library) ?

Yes simple Unity Game
Already tried to remove GPGS
Just started full project reimport.

Dont know what can help and what ahppens.
I can not find any error log that unity can not populate gradle.properties file

For me it looks like unity get gradle.properties from some cache insted of from disk

Full reimport dont help too :frowning:

The same result on other machine
So this bug is machine independant

Found that it was script altering properties file on post build :frowning:

Any solution for this? It is said it is resolved but I am having the same issue.

On my case it was just very old post processor script that alter gradle properties file in incorrect way