xxxyxyx
(xxxyxyx)
January 4, 2021, 7:39pm
1
please help with running the game on android. I struggle all day to make it finally go on the phone. I changed the min sdk version to 26 and the target sdk version to 29 but it does nothing, please help
log:
LogPlayLevel: Subsystem Google Play SDK Android init
LogPlayLevel: Android Permission Plugin Init
LogPlayLevel: Google Cloud Messaging init
LogPlayLevel: GCMClientSenderID set: false
LogPlayLevel: GooglePAD Plugin Init
LogPlayLevel: GooglePAD enabled: false
LogPlayLevel: Oculus mobile init
LogPlayLevel: Oculus Signature Files (osig) will be removed from APK
LogPlayLevel: Android Voice init
LogPlayLevel: AndroidAdvertising init
LogPlayLevel: Including AdMob support. Disable in Android project settings if you do not need to use it.
LogPlayLevel: GoogleGameSDK Android init
LogPlayLevel: UPL Init: arm64-v8a
LogPlayLevel: Subsystem Google Play SDK Android init
LogPlayLevel: Android Permission Plugin Init
LogPlayLevel: Google Cloud Messaging init
LogPlayLevel: GCMClientSenderID set: false
LogPlayLevel: GooglePAD Plugin Init
LogPlayLevel: GooglePAD enabled: false
LogPlayLevel: Oculus mobile init
LogPlayLevel: Oculus Signature Files (osig) will be removed from APK
LogPlayLevel: Android Voice init
LogPlayLevel: AndroidAdvertising init
LogPlayLevel: Including AdMob support. Disable in Android project settings if you do not need to use it.
LogPlayLevel: GoogleGameSDK Android init
LogPlayLevel: APK contains data.
LogPlayLevel: ====2021-01-04 20:33:42====PREPARING NATIVE CODE=====-armv7============================================================
LogPlayLevel: bPackageDataInsideApk = False
LogPlayLevel: UE4CommandLine.txt existsâŚ
LogPlayLevel: Copying C:\Users\komp\Documents\Unreal Projects\Celnik\Saved\StagedBuilds\Android_ASTC\UE4CommandLine.txt to C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\assets\UE4CommandLine.txt
LogPlayLevel: Added repository: D:\unreal\UE_4.26\Engine\Source\ThirdParty\Android\extras\google\m2repository
LogPlayLevel: Added repository: D:\unreal\UE_4.26\Engine\Source\ThirdParty\Android\extras\android\m2repository
LogPlayLevel: AARImports: com.google.android.gms, play-services-auth, 11.8.0
LogPlayLevel: AARImports: com.google.android.gms, play-services-games, 11.8.0
LogPlayLevel: AARImports: com.google.android.gms, play-services-nearby, 11.8.0
LogPlayLevel: AARImports: com.google.android.gms, play-services-plus, 11.8.0
LogPlayLevel: Copying Google Play BillingApiV2 java files
LogPlayLevel: Directory Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/BillingApiV2 copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/src
LogPlayLevel: Copying permission_library directory to staging before build
LogPlayLevel: Directory D:/unreal/UE_4.26/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/JavaLibs/permission_library
LogPlayLevel: ==== Writing to OBB data file C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\src\com\YourCompany\Celnik\OBBData.java ====
LogPlayLevel: ==== OBB data file up to date so not writing. ====
LogPlayLevel: Copying new .so D:\unreal\UE_4.26\Engine\Binaries\Android\UE4Game-armv7.so file to jni folderâŚ
LogPlayLevel: Copying libplaycore.so and proguard files
LogPlayLevel: File D:/unreal/UE_4.26/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/âŚ/ThirdParty/play-core-native-sdk/libs/armeabi-v7a/ndk21.3.6528147/c++_shared/libplaycore.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libplaycore.so
LogPlayLevel: Copying libvrapi.so
LogPlayLevel: File D:/unreal/UE_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/armeabi-v7a/libvrapi.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libvrapi.so
LogPlayLevel: Copying libOVRPlugin.so
LogPlayLevel: File D:/unreal/UE_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:/Users/komp/Documents/Unreal Projects/Celnik/Intermediate/Android/armv7/libs/armeabi-v7a/libOVRPlugin.so
LogPlayLevel: File D:/unreal/UE_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar does not exist, not copied!
LogPlayLevel: File D:/unreal/UE_4.26/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar does not exist, not copied!
LogPlayLevel: ====2021-01-04 20:33:45====PERFORMING FINAL APK PACKAGE OPERATION=====-armv7===========================================
LogPlayLevel: Copied file C:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\gradle\app\src\main\assets\UE4CommandLine.txt.
LogPlayLevel: Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
LogPlayLevel: Making .apk with GradleâŚ
LogPlayLevel: To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: The Gradle Daemon .
LogPlayLevel: Daemon will be stopped at the end of the build stopping after processing
LogPlayLevel: > Task :app:preBuild UP-TO-DATE
LogPlayLevel: > Task :app:preDebugBuild UP-TO-DATE
LogPlayLevel: > Task :downloader_library:preBuild UP-TO-DATE
LogPlayLevel: > Task :downloader_library:preDebugBuild UP-TO-DATE
LogPlayLevel: > Task :downloader_library:compileDebugAidl NO-SOURCE
LogPlayLevel: > Task :permission_library:preBuild UP-TO-DATE
LogPlayLevel: > Task :permission_library:preDebugBuild UP-TO-DATE
LogPlayLevel: > Task :permission_library:compileDebugAidl NO-SOURCE
LogPlayLevel: > Task :app:compileDebugAidl UP-TO-DATE
LogPlayLevel: > Task :downloader_library:packageDebugRenderscript NO-SOURCE
LogPlayLevel: > Task :permission_library:packageDebugRenderscript NO-SOURCE
LogPlayLevel: > Task :app:compileDebugRenderscript NO-SOURCE
LogPlayLevel: > Task :app:generateDebugBuildConfig UP-TO-DATE
LogPlayLevel: > Task :app:javaPreCompileDebug UP-TO-DATE
LogPlayLevel: > Task :app:generateDebugResValues UP-TO-DATE
LogPlayLevel: > Task :app:generateDebugResources UP-TO-DATE
LogPlayLevel: > Task :downloader_library:compileDebugRenderscript NO-SOURCE
LogPlayLevel: > Task :downloader_library:generateDebugResValues UP-TO-DATE
LogPlayLevel: > Task :downloader_library:generateDebugResources UP-TO-DATE
LogPlayLevel: > Task :downloader_library:packageDebugResources UP-TO-DATE
LogPlayLevel: > Task :permission_library:compileDebugRenderscript NO-SOURCE
LogPlayLevel: > Task :permission_library:generateDebugResValues UP-TO-DATE
LogPlayLevel: > Task :permission_library:generateDebugResources UP-TO-DATE
LogPlayLevel: > Task :permission_library:packageDebugResources UP-TO-DATE
LogPlayLevel: > Task :app:mergeDebugResources UP-TO-DATE
LogPlayLevel: > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
LogPlayLevel: > Task :app:extractDeepLinksDebug UP-TO-DATE
LogPlayLevel: > Task :downloader_library:extractDeepLinksDebug UP-TO-DATE
LogPlayLevel: > Task :downloader_library:processDebugManifest UP-TO-DATE
LogPlayLevel: > Task :permission_library:extractDeepLinksDebug UP-TO-DATE
LogPlayLevel: > Task :permission_library:processDebugManifest UP-TO-DATE
LogPlayLevel: > Task :app:processDebugManifest UP-TO-DATE
LogPlayLevel: > Task :downloader_library:compileDebugLibraryResources UP-TO-DATE
LogPlayLevel: > Task :downloader_library:parseDebugLocalResources UP-TO-DATE
LogPlayLevel: > Task :downloader_library:generateDebugRFile UP-TO-DATE
LogPlayLevel: > Task :permission_library:compileDebugLibraryResources UP-TO-DATE
LogPlayLevel: > Task :permission_library:parseDebugLocalResources UP-TO-DATE
LogPlayLevel: > Task :permission_library:generateDebugRFile UP-TO-DATE
LogPlayLevel: > Task :app:processDebugResources FAILED
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: Execution failed for task â:app:processDebugResourcesâ.
LogPlayLevel: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
LogPlayLevel: > Android resource linking failed
LogPlayLevel: Error: AAPT: error: failed writing to âZ:\app\build\intermediates\runtime_symbol_list\debug\R.txtâ: NieprawidĹowe dane. (13).
LogPlayLevel: * Try:
LogPlayLevel: 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.
LogPlayLevel: * Get more help at https://help.gradle.org
LogPlayLevel: BUILD FAILED in 19s
LogPlayLevel: 23 actionable tasks: 1 executed, 22 up-to-date
LogPlayLevel: Error: ERROR: cmd.exe failed with args /c âC:\Users\komp\Documents\Unreal Projects\Celnik\Intermediate\Android\armv7\gradle\rungradle.batâ :app:assembleDebug
LogPlayLevel: (see C:\Users\komp\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+unreal+UE_4.26\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 28.524810
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error
2 Likes
drew767
(drew767)
January 17, 2022, 11:07am
2
Did you find any solution? I have same issue
1 Like
hrustals
(hrustals)
January 17, 2024, 12:23pm
3
For packaging your software you need to complete the following:
Open SDK Manager in your Android Studio software (Configure-SDK Manager)
SDK Platforms tab - only Android API 31 checkbox must be checked.
SDK Tools tab - you need to use special script from Epic Games to fill necessary checkbox there. First, close Android Studio. This script is located in Unreal Engine folder. I.e. C:\Program Files\Epic Games\UE_4.27\Engine\Extras\Android. Open âSetupAndroid.batâ in Notepad and change all fields started with âset SDKMANAGERâŚâ to âset SDKMANAGER=%STUDIO_SDK_PATH%\cmdline-tools\8.0\bin\sdkmanager.batâ - there will be couple of them. Save the file. In your UE project open settings-android and accept Android license. Run the script and press buttons if youâll been asked. Restart your PC. After that a couple of checkboxes in your Studioâs SDK Tools tab will be filled (you can check it), and packaging will be successful.
I spend a lot of time to find this.