前提・実現したいこと
環境
windows10
unity2018.2.13f1
unityもteratailも初めたばかりです。初歩的な質問で大変恐縮なのですが
unityで実機でテストしようと、build and runするとエラーが出てしまいます。
エラーに至るまでに行ったこと
Window > Package Manger から Package Manager を起動して
Multiplayer HLAPIとXR Legacy Input Helpersをインストールする
以下のようなエラーはどうすれば解決しますか?
発生している問題・エラーメッセージ
エラー1
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':launcher'.
Could not resolve all artifacts for configuration ':launcher:classpath'.
Could not resolve com.android.tools.build:gradle:3.4.0.
Required by: project :launcher > Could not resolve com.android.tools.build:gradle:3.4.0. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- 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 895ms
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
エラー2
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ':launcher'.
Could not resolve all artifacts for configuration ':launcher:classpath'.
Could not resolve com.android.tools.build:gradle:3.4.0.
Required by: project :launcher > Could not resolve com.android.tools.build:gradle:3.4.0. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- 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 895ms
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
エラー3
Build completed with a result of 'Failed' in 25 seconds (25026 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
エラー4
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <e6522990dfdf40458abbd5eeeb595b91>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <e6522990dfdf40458abbd5eeeb595b91>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
該当のソースコード
ソースコード
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー