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

Đang mở
#91 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Objective-C++
Star
815
Fork
252
Merge trung bình
21 giờ 42 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Unity-Technologies/uaal-example

Tất cả issue của Unity-Technologies/uaal-example

Issue tương tự

Thêm issue về Mobile Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.