-
Notifications
You must be signed in to change notification settings - Fork 530
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
InvalidOperationException: The build cannot be appended. #234
Comments
I suppose this works on Unity version 2019.4.3f1. I will see if I can make an exception. Although on 2019.4.3f1, the following warning appears: "iOS project doesn't seem to exist, can't append, using replace mode." |
I'm also having this issue in windows for android, using unity 2019.4.13f1 and 2020.1.10f1, it shows the following error when click Export Android
Update: it seems an error with the last versions 20201.10f1 and 2019.4.13f1, because I tried with the previous version of unity 2019.4.12f1 and is working correctly |
The AcceptExternalModificationsToPlayer option seems to be redefined?
The removal of AcceptExternalModificationsToPlayer will make it happy. |
Our build pipeline broke down too when upgrading to 2019.4.14f1. Unity has changed the behaviour of BuildOptions.AcceptExternalModificationsToPlayer. It no longer works with Gradle builds. You have to use EditorUserBuildSettings.exportAsGoogleAndroidProject = true; |
thanks for him i just opened Build.cs file and edited it : changed doBuild function of the android target |
Having exactly the same issue on 2020.1.10f1 (android export) |
@pyciko did you try the solution that mention @midoshawky ? |
yes I did |
Hi, I tried @midoshawky solution and it let me build the APK, I use the oculus quest to recieve data from external sensors via bluetooth, however, when I delete the BuildOptions.AcceptExternalModificationsToPlayer option the oculus quest no longer recieves sensor data and I can no longer build the app without removing this option. EditorUserBuildSettings.exportAsGoogleAndroidProject = true; doesn't fix my issue, it only let's me build the app. |
Yeah so, @Darkmax, about the problems. |
@emcengineer is this an Oculus specific build issue? |
Thanks @snlehton and @midoshawky, your solutions worked for me to resolve this error on Android/iOS builds in Unity 2020.1.15f1. To summarize, replace the following lines in Assets > FlutterUnityIntegration > Editor > Build.cs. For iOS, replace this line in For Android, replace this line in On Android, that last line is important. It tells Unity to export an Android Studio project instead of an apk. Forgetting it will cause the copy step of the export script to fail. |
@russelljahn Do you mean |
@aznshodan Yep, typo, I meant And yes, those are the correct directories. When exported successfully, they're located under your root Flutter project folder:
|
I love you, it works |
I had the same issue when building Andorid projec on ubuntut with unity engine 2020.3.19f1 using FlutterUnityIntegration-v4.1.0. i will try other combinations to see what works |
my issue has been solved, with this solution. thanks brother @midoshawky Unity version 2020.3.20f1 |
@juicycleff Can this fix be merged anytime soon? |
I'm trying to create a simple Unity project accessible in Flutter.
But when trying to export using the Flutter Unity Package (https://github.com/juicycleff/flutter-unity-view-widget/tree/master/scripts/FlutterUnityPackage.unitypackage), I receive the following error:
"InvalidOperationException: The build cannot be appended."
Steps to reproduce:
Unity Hub > New > 3D > Create > Click to open new project > Import Flutter Unity Package > Flutter > Export iOS
"InvalidOperationException: The build cannot be appended."
This happens on most versions of Unity. Is there something I'm missing here?
Google: No results found for "the build cannot be appended".
Seems to be an issue with the Flutter Unity Package and newer versions of Unity, which are required for my project.
The text was updated successfully, but these errors were encountered: