I have created a minimal Unreal project using the starter content. I have generated signing certificates, and successfully packaged and run the project on the Hololens 2 emulator.
However, when I try to package the same project for my device, I get a the following failure:
UATHelper: Packaging (HoloLens): Using ARM64 architecture for deploying to HoloLens device
UATHelper: Packaging (HoloLens): ERROR: No required compiler toolchain found in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110
PackagingResults: Error: No required compiler toolchain found in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110
UATHelper: Packaging (HoloLens): Took 1.0359999s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (HoloLens): UnrealBuildTool failed. See log for more details. (C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-HololensTrial-HoloLens-Development.txt)
UATHelper: Packaging (HoloLens): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (HoloLens): BUILD FAILED
PackagingResults: Error: Unknown Error
How can I not have the required compiler toolchain on the device, but it succeeds in the emulator? What steps do I take to get around this?
Related
I'm able to build my .NET MAUI app on my Windows 11 machine using VS 2022 17.4.4 but when I try to build it on a Mac using VS 2022 17.4.3 (Build 21), it fails with the following error:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.1.1481/tools/msbuild/iOS/Xamarin.Shared.targets(3,3):
Error MSB4018: The "PrepareResourceRules" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the
path
'/Users/user231632/Documents/MyAppFolder/MyApp/bin/Release/net7.0-ios/ios-arm64/MyApp.app/ResourceRules.plist'.
Any idea what the problem is?
when I try to run the desktop application in a flutter. i write on terminal flutter run -d windows
give this the below error
Launching lib\main.dart on Windows in debug mode...
Nuget is not installed.
CMake Error at flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/windows/CMakeLists.txt:28 (message):
Integrity check for E:/Kabbee/Kp_Destop_App/build/windows/nuget.exe failed.
Building Windows application...
Exception: Unable to generate build filesenter image description here
I am new to flutter development so i followed the google getting started with flutter page as is.
When i used the andriod studio (or) visual studio to create a demo flutter application and try to run it on a emulator i get the below lines .
*Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Could not open settings generic class cache for settings file 'D:\personalnicknacks\softwares\flutter\hello_app_world\android\settings.gradle' (C:\Users\ing12703.gradle\caches\6.7\scripts\1fnwrr8g4rohfp291nvlxj5qe).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 60
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 1s
Exception: Gradle task assembleDebug failed with exit code 1*
I have the tried following things.
1)Ensured my JAVA_HOME environment is correct pointing.
2)used the latest java version 16.0
3)used the andriod studio to install the flutter plugins.
4)have also tried to install the gradel manually using the page https://gradle.org/install/#manually
5)now even my gradel output is correct
C:\Users\ing12703>gradle -v
Welcome to Gradle 7.0.2!
Here are the highlights of this release:
File system watching enabled by default
Support for running with and building Java 16 projects
Native support for Apple Silicon processors
Dependency catalog feature preview
For more details see https://docs.gradle.org/7.0.2/release-notes.html
Gradle 7.0.2
Build time: 2021-05-14 12:02:31 UTC
Revision: 1ef1b260d39daacbf9357f9d8594a8a743e2152e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 16.0.1 (Oracle Corporation 16.0.1+9-24)
OS: Windows 10 10.0 amd64
The suggestion I got online was to downgrade the JDK to say a 12 or so but is that the only viable option or am i missing something?
OK another thing i did try now was to indeed delete JAVA SDK 16 and install the JAVA SDK 15 and it works like a charm.
However I still wonder how do we know when to upgrade to latest JAVA SDK? is some compatibility list of SDK and their respective versions available in flutter documentation?
I am receiving some type of packaging error when attempting to package my project. It occurs when compiling one of the ThirdParty plugins within the engine. I did not modify any engine files so I am not sure why I am getting this error. Any help would be appreciated.
UATHelper: Packaging (Windows (64-bit)): Target Platform -- Win64
UATHelper: Packaging (Windows (64-bit)): Writing manifest to C:\Source\depot\UnrealEngine-4.23\Engine\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Windows (64-bit)): Using Visual Studio 2019 14.24.28314 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
UATHelper: Packaging (Windows (64-bit)): Building 3 actions with 12 processes...
UATHelper: Packaging (Windows (64-bit)): [1/3] Module.MeshSolverUtilities.cpp
UATHelper: Packaging (Windows (64-bit)): C:\Source\depot\UnrealEngine-4.23\Engine\Source\ThirdParty\Eigen\Eigen\src/Core/util/Memory.h(73): error C4834: discarding return value of function with 'nodiscard' attribute
UATHelper: Packaging (Windows (64-bit)): Took 8.1117657s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Source\depot\UnrealEngine-4.23\Engine\Programs\AutomationTool\Saved\Logs\UBT-CastleFight-Win64-Development.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
Try to rebuild Programs>AutomationTool or entire solution
I have developed a working hybrid application in which I am using "phonegap-googlemaps-plugin". This plugin needs as a dependency two other which downloads and installs automatically in the project. The dependencies are:
com.google.playservices and plugin.http.request
Using the Cordova-CLI, installing this plugin with the dependencies will fail building the project the 1st time because of a specific directory in the "playservices" plugin. To overcome this, I have to run "ant clean" in my project and also remove/rename that directory. Now, I am using Intel XDK and uploaded my app and installed most of my plugins successfully and run the application on my device. When I am trying to install the google play services plugin, it fails to build because of the reason I described above (I've run through the logs). How can I overcome this issue now?
I have attached the part of the log that shows the fail error
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] invalid resource directory name: .../App/platforms/android/com.google.playservices/google-play-services_lib/bin/res/crunch
BUILD FAILED
/Developer/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/Developer/android-sdk-linux/tools/ant/build.xml:698: null returned: 1
Total time: 5 seconds
Error code 1 for command: ant with args: release,-f,.../App/platforms /android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Command finished with error code 2: .../App/platforms/android/cordova/build --release
Error: .../App/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/Developer/cordova/3.5.0-0.2.7/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Thanks in advance.