반응형
AR 코어 플래터 플러그인을 작동시키려면 어떻게 해야 하나요?
나는 플라우터 앱에서 AR을 사용하려고 노력하고 있다. 패키지를 사용하고 있습니다. 플러그인을 추가한 후 앱을 실행할 수 없으며 다음 오류가 발생합니다(null safety 기능을 사용하지 않도록 설정한 후):
e: C:\Users\LENOVO THINKPAD\OneDrive\Bureau\Hackathon\ar_test\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreView.kt: (245, 38): Object is not abstract and does not implement abstract member public abstract fun onActivityCreated(p0: Activity, p1: Bundle?): Unit defined in android.app.Application.ActivityLifecycleCallbacks
e: C:\Users\LENOVO THINKPAD\OneDrive\Bureau\Hackathon\ar_test\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreView.kt: (246, 13): 'onActivityCreated' overrides nothing
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':arcore_flutter_plugin:compileDebugKotlin'.
> Compilation error. See log for more details
* 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 1m 57s
누가 좀 도와주면 안 될까요?
이것은 arcore_flutter_plugin의 오류입니다.
파일로 이동합니다:
C:\사용자\LENOVO 씽크패드\원드라이브\국\Hackathon\ar_test\android\src\main \kotlin\com\diffranscogianmarco\arcore_flutter_plugin\ArCoreView.kt
다음 행에서:
override fun onActivityCreated(activity: Activity?, savedInstanceState: Bundle?)
새 줄:
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)
MotionEvent를 변경하여 수정한 동일한 오류도 발견했습니다. ---> MotionEvent
반응형
'개발하자' 카테고리의 다른 글
Python: f.next()로 반복할 때 파일에서 한 줄을 되감습니다 (0) | 2023.05.12 |
---|---|
Oiy-JS 단계 정의의 "오류: 모듈 외부에서 가져오기 문을 사용할 수 없습니다"(스크립트 포함) (0) | 2023.05.12 |
테라포름 개수가 있는 항목에 대한 상태 표시 (0) | 2023.05.11 |
유형 스크립트: 트리의 상위 레벨에서 한 모듈에 별칭을 지정할 수 있지만 다른 모듈에는 별칭을 지정할 수 없습니까? (0) | 2023.05.10 |
Kubernetes 클러스터의 WebRTC (0) | 2023.05.09 |