-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Unity 2023.1.5] Execution failed for task ':flutter_unity_widget:compileDebugKotlin'. #847
Comments
Unity 2023 is currently broken on android. |
But when i tried to use Unity 2022.3.5f1 I have an issue with AndroidManifest.xml whereas he is generated into 2023 FAILURE: Build failed with an exception.
BUILD FAILED in 4s |
The missing manifest file might be caused by the Unitypackage XR Plugin Management. Even if you don't use AR, the example used to include that package until very recently. |
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... FAILURE: Build failed with an exception.
BUILD FAILED in 23s Exited (1). FAILURE: Build failed with an exception.
BUILD FAILED in 23s I am getting the same issue. Have you been able to resolve it? |
My problem is same as you , the following is my specific log.
只要删除:res.androidlib就好了, 目录大概在plugin/Android下面 . |
Describe the bug
Each time i tried to launch the app on Android I have this issue
Note: /Volumes/Workspace/www/pacprod_apps/android/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:13:1 Class 'CustomUnityPlayer' is not abstract and does not implement abstract base class member public abstract fun setMainSurfaceViewAspectRatio(p0: Float): Unit defined in com.unity3d.player.UnityPlayer
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:13:1 CustomUnityPlayer inherits invisible abstract members: public/package/ abstract fun handleFocus(p0: Boolean): Boolean defined in com.unity3d.player.UnityPlayer, public/package/ abstract fun getGfxView(): View! defined in com.unity3d.player.UnityPlayer, public/package/ abstract fun onOrientationChanged(p0: Int, p1: Int): Unit defined in com.unity3d.player.UnityPlayer, public/package/ abstract fun cleanupResourcesForDestroy(): Unit defined in com.unity3d.player.UnityPlayer
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:13:102 Type mismatch: inferred type is IUnityPlayerLifecycleEvents? but UnityPlayer.h! was expected
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:13:102 No value passed for parameter 'p2'
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:19:5 'onConfigurationChanged' overrides nothing
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:21:15 Unresolved reference: onConfigurationChanged
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:24:5 'onAttachedToWindow' overrides nothing
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:26:15 Unresolved reference: onAttachedToWindow
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:32:5 'onDetachedFromWindow' overrides nothing
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:36:15 Unresolved reference: onDetachedFromWindow
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:39:5 'dispatchTouchEvent' overrides nothing
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:41:22 Unresolved reference: dispatchTouchEvent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:45:5 'onTouchEvent' overrides nothing
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/CustomUnityPlayer.kt:49:22 Unresolved reference: onTouchEvent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetController.kt:337:44 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetController.kt:338:45 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetController.kt:338:77 Type mismatch: inferred type is CustomUnityPlayer? but View! was expected
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetController.kt:342:44 Unresolved reference: z
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/FlutterUnityWidgetController.kt:359:44 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/OverrideUnityActivity.kt:45:23 Unresolved reference: lowMemory
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:38:64 Unresolved reference: requestFocus
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:56:31 Unresolved reference: bringToFront
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:57:31 Unresolved reference: requestLayout
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:58:31 Unresolved reference: invalidate
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:177:31 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:179:65 Type mismatch: inferred type is CustomUnityPlayer? but View! was expected
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:196:19 None of the following functions can be called with the arguments supplied:
public open fun addView(p0: View!, p1: ViewGroup.LayoutParams!): Unit defined in android.view.ViewGroup
public open fun addView(p0: View!, p1: Int): Unit defined in android.view.ViewGroup
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:203:31 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:204:32 Unresolved reference: parent
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:204:64 Type mismatch: inferred type is CustomUnityPlayer? but View! was expected
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:207:31 Unresolved reference: z
e: file:///Users/nkrmr/.pub-cache/hosted/pub.dev/flutter_unity_widget-2022.2.0/android/src/main/kotlin/com/xraph/plugin/flutter_unity_widget/UnityPlayerUtils.kt:210:39 Type mismatch: inferred type is CustomUnityPlayer? but View! was expected
FAILURE: Build failed with an exception.
Execution failed for task ':flutter_unity_widget:compileDebugKotlin'.
BUILD FAILED in 27s
Exception: Gradle task assembleDebug failed with exit code 1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build correctly to Android
**Unity **
The text was updated successfully, but these errors were encountered: