「Unity/photon/pun1/2018.2error」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→"Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList"エラー) |
(→"Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList"エラー) |
||
行27: | 行27: | ||
unityのandroidのinternalをgradleにすれば治った。 | unityのandroidのinternalをgradleにすれば治った。 | ||
− | =="Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList" | + | =="Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList"エラーの場合== |
Assets/Plugins/Android/AndroidManifest.xml | Assets/Plugins/Android/AndroidManifest.xml | ||
<activity android:name="com.unity3d.player.UnityPlayerProxyActivity" | <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" | ||
行35: | 行35: | ||
本来不要であれば、Assets/Plugins/Android/AndroidManifest.xmlは削除してよい。 | 本来不要であれば、Assets/Plugins/Android/AndroidManifest.xmlは削除してよい。 | ||
+ | |||
+ | =="java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" androids"エラーの場合== | ||
+ | Assets/Plugins/Android/AndroidManifest.xml | ||
+ | -keep class androidx.core.app.CoreComponentFactory { *; } | ||
==admobが出ないなど== | ==admobが出ないなど== | ||
Assets/Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest.xml | Assets/Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest.xml | ||
あたりを見る。 | あたりを見る。 |
2019年9月12日 (木) 21:44時点における版
目次
- 1 "removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead photon"エラー
- 2 if (method.IsDefined(typeof (RPC), false))エラー
- 3 else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android) || !InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.iPhone))エラー
- 4 "UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors"エラーの時
- 5 "Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList"エラーの場合
- 6 "java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" androids"エラーの場合
- 7 admobが出ないなど
"removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead photon"エラー
以下からgoogle-arインストールすると治る。
https://github.com/google-ar/arcore-unity-sdk/releases/tag/v1.4.1
参考:https://github.com/google-ar/arcore-unity-sdk/issues/197
if (method.IsDefined(typeof (RPC), false))エラー
if (method.IsDefined(typeof (PunRPC), false))
へ変換
参考:https://forum.unity.com/threads/disable-unityengine-rpc-is-obsolete-spam.337395/
else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android) || !InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.iPhone))エラー
else if (!InternalEditorUtility.HasAdvancedLicenseOnBuildTarget(BuildTarget.Android))
へ変更
参考:https://qiita.com/jtky8238/items/54cbf0d58d758a1b3525
"UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors"エラーの時
"com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version"エラーの時も同様
unityのandroidのinternalをgradleにすれば治った。
"Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerProxyActivity" on path: DexPathList"エラーの場合
Assets/Plugins/Android/AndroidManifest.xml
<activity android:name="com.unity3d.player.UnityPlayerProxyActivity"
を
<activity android:name="com.unity3d.player.UnityPlayerActivity"
へ
本来不要であれば、Assets/Plugins/Android/AndroidManifest.xmlは削除してよい。
"java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" androids"エラーの場合
Assets/Plugins/Android/AndroidManifest.xml
-keep class androidx.core.app.CoreComponentFactory { *; }
admobが出ないなど
Assets/Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest.xml あたりを見る。