Ajuda Com Admob
5 participantes
Página 1 de 1
Ajuda Com Admob
Estou desde ontem tentando implementar o AdMob No meu projeto na unity mais estou tendo os seguintes erros :
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:11.2.2
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.ResolverVer1_1:LogMissingDependenciesError(List`1)
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey17:<>m__26(List`1)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
2º erro
Gradle failed to fetch dependencies.
Failed to run 'Temp\PlayServicesResolverGradle\gradlew.bat -b Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle --no-daemon "-PANDROID_HOME=C:/Users/Joao/AppData/Local/Android/sdk" "-PTARGET_DIR=C:\Users\Joao\Documents\Mystery\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:11.2.2"'
stdout:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
stderr:
exit code: 1
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Ja verifiquei o local do JDK e do SDK e também ja inportei os plugins e arquivos do admob
se alguem poder fazer um tutorial de como implementar o admob na unity ficarei muito agradecido
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:11.2.2
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.ResolverVer1_1:LogMissingDependenciesError(List`1)
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey17:<>m__26(List`1)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
2º erro
Gradle failed to fetch dependencies.
Failed to run 'Temp\PlayServicesResolverGradle\gradlew.bat -b Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle --no-daemon "-PANDROID_HOME=C:/Users/Joao/AppData/Local/Android/sdk" "-PTARGET_DIR=C:\Users\Joao\Documents\Mystery\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:11.2.2"'
stdout:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
stderr:
exit code: 1
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Ja verifiquei o local do JDK e do SDK e também ja inportei os plugins e arquivos do admob
se alguem poder fazer um tutorial de como implementar o admob na unity ficarei muito agradecido
BRGC- ProgramadorMaster
- PONTOS : 3054
REPUTAÇÃO : 59
Idade : 20
Áreas de atuação : C#, C++, C, Flutter
Respeito as regras :
Re: Ajuda Com Admob
Verifique se você tem os requisitos para usar o plugin:
- Unity3D versão 4 ou maior;
- Android SDK versção 3.2 ou maior;
- Android Google Play Services.
Re: Ajuda Com Admob
Bom Dia.
Ao criar o código do video mostrado na mensagem anterior, ele diz para construir 2 button,
Posso criar só um botão? o de banner?
Ao criar o código do video mostrado na mensagem anterior, ele diz para construir 2 button,
Posso criar só um botão? o de banner?
marco.flautista- Iniciante
- PONTOS : 2530
REPUTAÇÃO : 3
Respeito as regras :
Re: Ajuda Com Admob
If you are having issues with the integration of your ad network, such as admob, I would suggest that you look into using Enhance to be sure there are no issues with the implementation. Integration can be a big pain and take up too much valuable time.
Using Enhance®, you can now integrate all of the services that different providers offer without ever having to touch SDK again. With little to no coding at all and without touching source code, Enhance® is the easiest way to integrate 3rd party services into your project or to keep them up to date. (Ads, Mediation, Analytics, Attribution, Crash Reporting and more) No more SDK integration !!!
Implement & update multiple SDKs in a few simple steps with Enhance: https://goo.gl/RvDg1p
Using Enhance®, you can now integrate all of the services that different providers offer without ever having to touch SDK again. With little to no coding at all and without touching source code, Enhance® is the easiest way to integrate 3rd party services into your project or to keep them up to date. (Ads, Mediation, Analytics, Attribution, Crash Reporting and more) No more SDK integration !!!
Implement & update multiple SDKs in a few simple steps with Enhance: https://goo.gl/RvDg1p
RozekEnhance- Iniciante
- PONTOS : 2550
REPUTAÇÃO : 0
Respeito as regras :
Re: Ajuda Com Admob
Boa Noite. Não estou tendo problemas ainda, acho que vou ter na hora de copilar o jogo.
marco.flautista- Iniciante
- PONTOS : 2530
REPUTAÇÃO : 3
Respeito as regras :
Re: Ajuda Com Admob
O segundo erro, é causado pelo motivo de que você não colocou os caminhos no seu PC, o que você deve fazer:BRGC escreveu:Estou desde ontem tentando implementar o AdMob No meu projeto na unity mais estou tendo os seguintes erros :
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:11.2.2
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.ResolverVer1_1:LogMissingDependenciesError(List`1)
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey17:<>m__26(List`1)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
2º erro
Gradle failed to fetch dependencies.
Failed to run 'Temp\PlayServicesResolverGradle\gradlew.bat -b Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle --no-daemon "-PANDROID_HOME=C:/Users/Joao/AppData/Local/Android/sdk" "-PTARGET_DIR=C:\Users\Joao\Documents\Mystery\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:11.2.2"'
stdout:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
stderr:
exit code: 1
UnityEngine.Debug:LogError(Object)
GooglePlayServices.PlayServicesResolver:LogDelegate(String, LogLevel)
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__20(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__29()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Ja verifiquei o local do JDK e do SDK e também ja inportei os plugins e arquivos do admob
se alguem poder fazer um tutorial de como implementar o admob na unity ficarei muito agradecido
Entrar no Iexeplorer.exe, ir até Este Computador > Propriedades > Config. Avançadas do sistema > Variáveis de ambiente > Crie uma variável, com o primeiro botão de "Novo..." e coloque assim:
Nome: JAVA_HOME
Valor: (Onde você baixou o JDK, por exemplo:) C:\Program Files\Java\jdk1.8.0_151\
Agora, crie outra, novamente, da mesma forma:
Nome: path
Valor: (Onde você baixou o JDK + bin, por exemplo:) C:\Program Files\Java\jdk1.8.0_151\bin
Não modifique os valores de outras variáveis. Além disto, maiúsculas e minúsculas, devem ser respeitadas ^
Água Sem Hidrogênio- Avançado
- PONTOS : 2753
REPUTAÇÃO : 25
Respeito as regras :
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos