error: cannot find symbol import com.unity3d.player.IUnityPlayerSupport;

オープン
#91 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, java
領域
mobile

調査の方向性

Start with NativeAndroidApp/app/src/main/java/com/unity/mynativeapp/SharedClass.java, where compilation fails on the IUnityPlayerSupport import and cast. Trace the Unity Android integration and dependency setup to determine where that interface should come from; the report does not identify the required version or configuration. Done when the Android app compiles without the missing-symbol errors.

索引モデルが issue の本文から書いたものです。

説明

Task :app:compileDebugJavaWithJavac FAILED
C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\SharedClass.java:10: error: cannot find symbol
import com.unity3d.player.IUnityPlayerSupport;
^
symbol: class IUnityPlayerSupport
location: package com.unity3d.player
C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\SharedClass.java:27: error: cannot find symbol
UnityPlayer unityPlayer = ((IUnityPlayerSupport) UnityPlayer.currentActivity).getUnityPlayerConnection();
^
symbol: class IUnityPlayerSupport
location: class SharedClass
Note: C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\MainActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

主要言語
Objective-C++
スター
815
フォーク
252
平均マージ
21時間 42分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/uaal-example のほかの issue

Unity-Technologies/uaal-example の issue をすべて見る

似ている issue

Mobile Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。