Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

2K
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda