Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2K
Views
Gradle Build Error In Unity with error Could not get unknown property 'unityStreamingAssets'

CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2020.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" stderr[

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Nik\Downloads\Stu\Temp\gradleOut\launcher\build.gradle' line: 30

  • What went wrong: A problem occurred evaluating project ':launcher'. Could not get unknown property 'unityStreamingAssets' for object of type com.android.build.gradle.internal.dsl.AaptOptions.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 ] stdout[

Configure project :launcher WARNING: The option 'android.enableR8' is deprecated and should not be used anymore. It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8. ] exit code: 1

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Add this line to gradle.properties file:

unityStreamingAssets=.unity3d, google-services-desktop.json, google-services.json, GoogleService-Info.plist

Fixed it for me :)

over 4 years ago · Santiago Trujillo Report

0

As Chris said, you have put this at the bottom of your gradle.properties file:

unityStreamingAssets=.unity3d, google-services-desktop.json, google-services.json, GoogleService-Info.plist

There's a few gotchas though:

If you don't have/can't find a gradle.properties file:

Build Settings > Player Setttings > (Android Icon) > Publishing Settings

And look for Custom Gradle Properties Template - if you see it checked, there's a .properties file below it which is equivalent to your gradle.properties.

If you already have a unityStreamingAssets= line:

You can combine the new line with your old one if you want to keep your old unitStreamingAssets tags; however you must put the line below **ADDITIONAL_PROPERTIES** or it won't work!

over 4 years ago · Santiago Trujillo Report

0

Checkout the uaal-example example. One of the steps in the readme is to copy the gradle.properties from the android export to your native app as one of those properties defines unityStreamingAssets.

Copy gradle.properties file from exported Unity project root folder to native application root folder or create a symlink to make sure that this file is always up to date

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!