Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

source build error : System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\UnrealEngine-4.18.1-release\Engine\Intermediate\Android\APK\gradle\app\aar-imports.gradle"

I want to package my project with engine source build, I did steps follow this link:https://answers.unrealengine.com/questions/86963/how-to-setup-android-platform.html

First I build UE4 target for Development Editor > Win64 successful, then I build UE4 target for Development > Win64 successful, but build UE4 target for Development > Android failed.

Env: VS2015 update3, UE4.18.1, Windows 10 pro.

alt text

build log:

 10>  Cleaning up files based on template dir C:\UnrealEngine-4.18.1-release\Engine\Build\Android\src\com\YourCompany\UE4Game
 10>  C:\UnrealEngine-4.18.1-release\Engine\Binaries\Android\UE4Game-armv7-es2.apk is out of date due to newer input file C:\UnrealEngine-4.18.1-release\Engine\Binaries\Android\UE4Game-armv7-es2.so
 10>  UPL Init: armeabi-v7a
 10>  Android Permission Plugin Init
 10>  Google Cloud Messaging init
 10>  GCMClientSenderID set: false
 10>  GearVR init
 10>  Oculus Signature Files (osig) will be removed from APK
 10>  Android Voice init
 10>  AndroidAdvertising init
 10>  Including AdMob support. Disable in Android project settings if you do not need to use it.
 10>  Looking for OBB.
 10>  Fixing minSdkVersion; requires minSdkVersion of 14 with Gradle based on active plugins
 10>  bPackageDataInsideApk = False
 10>  Added repository: D:\sdks\NVPACK_new\android-sdk-windows\extras\android\m2repository
 10>  AARImports: com.google.android.gms, play-services-auth, 11.0.4
 10>  AARImports: com.google.android.gms, play-services-games, 11.0.4
 10>  AARImports: com.google.android.gms, play-services-nearby, 11.0.4
 10>  AARImports: com.google.android.gms, play-services-plus, 11.0.4
 10>  AARImports: com.android.support, support-v13, 25.2.0
 10>  AARImports: com.google.android.gms, play-services-ads, 11.0.4
 10>EXEC : error : System.IO.DirectoryNotFoundException: 未能找到路径“C:\UnrealEngine-4.18.1-release\Engine\Intermediate\Android\APK\gradle\app\aar-imports.gradle”的一部分。
 10>            在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 10>            在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
 10>            在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
 10>            在 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
 10>            在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
 10>            在 System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
 10>            在 UnrealBuildTool.UEDeployAndroid.GenerateGradleAARImports(String EngineDir, String UE4BuildPath, List`1 NDKArches) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 3843
 10>            在 UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk, Boolean bDisallowExternalFilesDir) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 2972
 10>            在 UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildDeployTarget InTarget) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs:行号 3472
 10>            在 UnrealBuildTool.AndroidPlatform.Deploy(UEBuildDeployTarget Target) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEBuildAndroid.cs:行号 521
 10>            在 UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) 位置 C:\UnrealEngine-4.18.1-release\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:行号 1718
 10>  Total build time: 5.60 seconds (NoActionsToExecute executor: 0.00 seconds)
 10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.targets(41,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Game Android Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

Product Version: UE 4.18
aaaa.png (14.5 kB)
more ▼

asked Dec 18 '17 at 02:33 AM in Packaging & Deployment

avatar image

216 12 24 29

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

It turned out by restart windows......

more ▼

answered Jan 12 '18 at 03:03 PM

avatar image

216 12 24 29

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question