[RESOLVIDO] Error para copilar para Android?
3 participantes
SchultzGames :: UNITY 3D :: Resolvidos
Página 1 de 1
[RESOLVIDO] Error para copilar para Android?
Boa tarde brothers
Bom estou com um projeto aqui estava dando esse error
Mais ao textar no aparelho nele nao abre o projeto mostra esse error
O que pode ser dessa vez?
Bom estou com um projeto aqui estava dando esse error
- Código:
Unable to list target platforms. plase make sure the
android sdk path is correct. See the Console for details.
Mais ao textar no aparelho nele nao abre o projeto mostra esse error
- Código:
Unable to initialize the Unity Engine.
O que pode ser dessa vez?
Última edição por Callyde Jr em Qua Jan 02, 2019 7:23 am, editado 2 vez(es)
Re: [RESOLVIDO] Error para copilar para Android?
Testar o aparelho nele o que? Vc testou no unity Remote?
francisco barroso- Programador
- PONTOS : 2612
REPUTAÇÃO : 59
Respeito as regras :
Re: [RESOLVIDO] Error para copilar para Android?
Achei isso aqui mais vou ver ainda hoje se funciona
Aqui
Aqui
Re: [RESOLVIDO] Error para copilar para Android?
Callyde Jr escreveu:Nao deu certo ainda assim
Desmarca a opçao "Scripts Only Build" em Build Settings e faz um teste
francisco barroso- Programador
- PONTOS : 2612
REPUTAÇÃO : 59
Respeito as regras :
Re: [RESOLVIDO] Error para copilar para Android?
Acontecia o mesmo comigo eu baxei o SDK pelo installer do Visual Studio e já veio com a versão 25.0.3 e funcionou legal! não esqueça de baixar as plataformas sé vc baixou o sdk puro!
Weslley- Moderador
- PONTOS : 5726
REPUTAÇÃO : 744
Idade : 26
Áreas de atuação : Inversión, Desarrollo, Juegos e Web
Respeito as regras :
Re: [RESOLVIDO] Error para copilar para Android?
Atualizei o SDK como mostra no video o erro acabou agora e outro com NDK
Vou atualiza-lo para ver.
Mostra isso agora
Gradle build faild. See the Console for details
Vou atualiza-lo para ver.
Mostra isso agora
Gradle build faild. See the Console for details
- Código:
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_181\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleDebug"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'gradleOut'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.google.guava:guava:18.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:gradle-api:2.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:common:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.analytics-library:shared:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.analytics-library:tracker:25.3.0
> Could not resolve com.google.guava:guava:18.0.
> Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.databinding:baseLibrary:2.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve com.android.databinding:baseLibrary:2.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.3.0/baseLibrary-2.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.3.0/baseLibrary-2.3.0.pom'.
> jcenter.bintray.com
> Could not resolve org.antlr:antlr4:4.5.3.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve org.antlr:antlr4:4.5.3.
> Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'.
> Could not GET 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.pom'.
> jcenter.bintray.com
> Could not resolve commons-io:commons-io:2.4.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve commons-io:commons-io:2.4.
> Could not get resource 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'.
> Could not GET 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom'.
> jcenter.bintray.com
> Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
> Could not get resource 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'.
> Could not GET 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom'.
> jcenter.bintray.com
> Could not resolve com.google.guava:guava:18.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve com.google.guava:guava:18.0.
> Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools:annotations:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.databinding:compilerCommon:2.3.0
> Could not resolve com.android.tools:annotations:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/annotations/25.3.0/annotations-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/annotations/25.3.0/annotations-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve net.sf.proguard:proguard-base:5.3.2.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > net.sf.proguard:proguard-gradle:5.3.2
> Could not resolve net.sf.proguard:proguard-base:5.3.2.
> Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.2/proguard-base-5.3.2.pom'.
> Could not GET 'https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.3.2/proguard-base-5.3.2.pom'.
> jcenter.bintray.com
> Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > org.jacoco:org.jacoco.core:0.7.5.201505241946
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > org.jacoco:org.jacoco.report:0.7.5.201505241946
> Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
> Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom'.
> Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom'.
> jcenter.bintray.com
> Could not resolve org.antlr:antlr-runtime:3.5.2.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > org.antlr:antlr:3.5.2
> Could not resolve org.antlr:antlr-runtime:3.5.2.
> Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.pom'.
> Could not GET 'https://jcenter.bintray.com/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.pom'.
> jcenter.bintray.com
> Could not resolve org.antlr:ST4:4.0.8.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > org.antlr:antlr:3.5.2
> Could not resolve org.antlr:ST4:4.0.8.
> Could not get resource 'https://jcenter.bintray.com/org/antlr/ST4/4.0.8/ST4-4.0.8.pom'.
> Could not GET 'https://jcenter.bintray.com/org/antlr/ST4/4.0.8/ST4-4.0.8.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools:annotations:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.build:builder-model:2.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:common:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.analytics-library:shared:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.analytics-library:tracker:25.3.0
> Could not resolve com.android.tools:annotations:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/annotations/25.3.0/annotations-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/annotations/25.3.0/annotations-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools.layoutlib:layoutlib-api:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve com.android.tools.layoutlib:layoutlib-api:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/25.3.0/layoutlib-api-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/25.3.0/layoutlib-api-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools:dvlib:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve com.android.tools:dvlib:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/dvlib/25.3.0/dvlib-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/dvlib/25.3.0/dvlib-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools:repository:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve com.android.tools:repository:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/repository/25.3.0/repository-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/repository/25.3.0/repository-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve com.google.code.gson:gson:2.2.4.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.build:manifest-merger:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.analytics-library:shared:25.3.0
> Could not resolve com.google.code.gson:gson:2.2.4.
> Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.pom'.
> Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.pom'.
> jcenter.bintray.com
> Could not resolve org.apache.commons:commons-compress:1.8.1.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve org.apache.commons:commons-compress:1.8.1.
> Could not get resource 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom'.
> Could not GET 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom'.
> jcenter.bintray.com
> Could not resolve org.apache.httpcomponents:httpclient:4.1.1.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve org.apache.httpcomponents:httpclient:4.1.1.
> Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom'.
> Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom'.
> jcenter.bintray.com
> Could not resolve org.apache.httpcomponents:httpmime:4.1.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools:sdklib:25.3.0
> Could not resolve org.apache.httpcomponents:httpmime:4.1.
> Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom'.
> Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom'.
> jcenter.bintray.com
> Could not resolve net.sf.kxml:kxml2:2.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.build:manifest-merger:25.3.0
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.build:builder:2.3.0 > com.android.tools.ddms:ddmlib:25.3.0
> Could not resolve net.sf.kxml:kxml2:2.3.0.
> Could not get resource 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
> jcenter.bintray.com
> Could not resolve com.android.tools.lint:lint-api:25.3.0.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.lint:lint:25.3.0 > com.android.tools.lint:lint-checks:25.3.0
> Could not resolve com.android.tools.lint:lint-api:25.3.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.3.0/lint-api-25.3.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-api/25.3.0/lint-api-25.3.0.pom'.
> jcenter.bintray.com
> Could not resolve org.ow2.asm:asm-analysis:5.0.4.
Required by:
project : > com.android.tools.build:gradle:2.3.0 > com.android.tools.build:gradle-core:2.3.0 > com.android.tools.lint:lint:25.3.0 > com.android.tools.lint:lint-checks:25.3.0
> Could not resolve org.ow2.asm:asm-analysis:5.0.4.
> Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.pom'.
> Could not GET 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.pom'.
> jcenter.bintray.com
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 36s
]
stdout[
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Tópicos semelhantes
» [RESOLVIDO] Error depois de copilar para Android?
» [RESOLVIDO] Como faz para o jogo saber se e windows, android,tablet , mac e ios?
» [RESOLVIDO] Compilar para android?
» [RESOLVIDO] Erro ao Copilar: Bug no personagem.
» [RESOLVIDO] Problema com Compilação para Android
» [RESOLVIDO] Como faz para o jogo saber se e windows, android,tablet , mac e ios?
» [RESOLVIDO] Compilar para android?
» [RESOLVIDO] Erro ao Copilar: Bug no personagem.
» [RESOLVIDO] Problema com Compilação para Android
SchultzGames :: UNITY 3D :: Resolvidos
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos