前提・実現したいこと
ARcoreを用いた開発をしようと思い、最新版のAndroid Studio、Unityをインストールし、https://developers.google.com/ar/develop/unity/quickstart-android
こちらのリンクに従ってビルドを行おうとしたのですが、以下のようなエラーメッセージが出てしまいます。
発生している問題・エラーメッセージ
Assets/GoogleARCore/Examples/CloudAnchors/Scripts/CloudAnchorUIController.cs(85,62): error CS0619: UnityEngine.Network' is obsolete:
The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.'
Assets/GoogleARCore/Examples/CloudAnchors/Scripts/CloudAnchorUIController.cs(85,62): error CS0619: UnityEngine.Network.player' is obsolete:
The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.'
Assets/GoogleARCore/Examples/CloudAnchors/Scripts/CloudAnchorUIController.cs(85,69): error CS0619: UnityEngine.NetworkPlayer.ipAddress' is obsolete:
The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead.'
Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs(87,75): warning CS0618: UnityEngine.ScreenOrientation.Unknown' is obsolete:
Enum member Unknown has been deprecated.'
Error building Player because scripts have compile errors in the editor
Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
該当のソースコード
言語:C#
コード
(おそらく以下が該当部分だと思います)
public void Start()
{
IPAddressText.text = "My IP Address: " + Network.player.ipAddress;
}
試したこと
上記の部分をコメントアウトしてみたりもしましたが、そうすると今度はビルド時に
Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for details.
とのメッセージが出てしまいます。
sdk>toolsの中身を置き換えたりもしましたが失敗に終わりました。
補足情報(FW/ツールのバージョンなど)
Unity:Version 2018.2.2f1 Personal
Android Studio:3.1.3
公式の指示通りに行ったのですが、うまく行かず、同様の問題に困っている人も見当たらなかったため、こちらで質問させていただきました。記載が不十分な点等あったらお伝えいただけると幸いです。
あなたの回答
tips
プレビュー