Announcement

Collapse
No announcement yet.

.AAR libraries are not being imported at all in 4.13

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • started a topic .AAR libraries are not being imported at all in 4.13

    .AAR libraries are not being imported at all in 4.13

    I have dropped in my .aar libraries I need to use with my UE4 android game under \Build\Android\libs\, and they are not being included in the built package.

    When I create my APK, I notice that they are copied over to the \Intermediate\Android\APK\libs\ folder, so it is apparantly doing something with them, but they're being ignored.

    I've spent a few days searching around trying to find any information about how AAR is supported (if at all) by 4.13, and the most I can find is that the Google Play services use AAR, and the undocumented "aar-imports.txt" file.

    The contents of aar-imports.txt are as follows:

    repositories $(ANDROID_HOME)/extras
    repositories $(ENGINEDIR)/Source/ThirdParty/Android/extras
    com.google.android.gms,play-services-ads,9.2.0
    com.google.android.gms,play-services-auth,9.2.0
    com.google.android.gms,play-services-games,9.2.0
    com.google.android.gms,play-services-nearby,9.2.0
    com.google.android.gms,play-services-plus,9.2.0

    During the APK build process, the Output Log from UE4 shows this:

    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.AddRepositories: Added repository: D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.AddRepositories: Added repository: C:\Program Files (x86)\Epic Games\4.13\Engine\Source\ThirdParty\Android\extras\google\m2repository
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.AddRepositories: Added repository: C:\Program Files (x86)\Epic Games\4.13\Engine\Source\ThirdParty\Android\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-ads, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-auth, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-games, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-plus, 9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-lite-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-basement-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR support-v4-23.0.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-tasks-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-clearcut-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-gass-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-games-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-drive-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-nearby-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-plus-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.CopyJARs: Copying JAR support-annotations-23.0.0.jar
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.MakeApk:
    UATHelper: Packaging (Android (ETC2)): ====11/11/2016 2:57:51 PM====PREPARING NATIVE CODE=================================================================
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.RequiresOBB: On build machine.
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.UpdateProjectProperties:

    ....
    My best guess is putting the package names of the libraries in this file to include them as an AAR packages that it will extract, but it doesn't work. There's no warning or error either, they just get entirely ignored.

    So my questions are: Is AAR actually supported by the engine, or merely hard-coded to support the Google Play services only? - and how do you include AAR libraries in a UE4 android project if they are supported?

  • replied
    Thanks to email communication with Makis and doing some thorough back and forth work with my plugin, I've managed to get our .AAR SDK imported and through JNI calls initialized on top of the UE4 GameActivity during runtime on-device. Thank you again Makis, and thanks Chris Babcock for support on this matter.

    I will try to find time to write up a detailed article for other developers on how to import and use a .AAR compiled library in a UE4.13+ project until UE4 has gradle and merge support.


    What I had to do in this particular case following the last forum posts:

    Example: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').Solution: I had to find the Base.TextAppearance.AppCompat.SubHead value from it appcompat v7's values.xml and copy it into my .AAR's /res/values.xml as well as any parent or dimension values it depended on, plus all other styles and their recursive values. Once I did that, went through the proper JNI calls, and added my SDK's AndroidManifest.xml activities into the plugin's UPL definition, all went smoothly.


    **** PROTIP: If you need to get the UE4 GameActivity context in JNI to initiate an overlay on top of your game (or whatever else you'd need the game activity context for), you'd do so like this:

    // Initialize JNI
    JNIEnv* env = FAndroidApplication::GetJavaEnv();


    // Grab UE4 game activity class name and SDK class name
    jclass jcUE4ActivityClass = FAndroidApplication::FindJavaClass("com.epicgames.ue4.GameActivity");
    jclass jcPluginJavaClass = FAndroidApplication::FindJavaClass("com.mycompany.myplugin.myclass"); // Rename to whatever your SDK package name is


    // Get instance of SDK class
    // * Note: this part may not be required if you only need to make a static method call to store the Context/Activity reference
    jmethodID constructor = env->GetMethodID(jcPluginJavaClass, "<init>", "()V");
    jobject joSDK = env->NewObject(jcPluginJavaClass, constructor);


    // Get instance of UE4 game activity
    jmethodID getActivity = env->GetStaticMethodID(jcUE4ActivityClass, "Get", "()Lcom/epicgames/ue4/GameActivity;");
    jobject joUEActivity = env->CallStaticObjectMethod(jcUE4ActivityClass, getActivity);


    // Store Context reference within SDK
    // * Note: these two JNI calls may slightly differ depending on your use case (static call vs. class object, Context vs. Activity, non-Void method return, etc.) - see above note.
    jmethodID jmSetContext = env->GetMethodID(jcPluginJavaClass, "setContext", "(Landroid/content/ContextV");
    env->CallVoidMethod(joSDK, jmSetContext, joUEActivity); // UE4 GameActivity context reference is now stored in SDK

    Cheers and look forward to .AAR and Gradle build support being fully integrated in the near future releases!
    Last edited by _Auron_; 12-06-2016, 01:23 PM.

    Leave a comment:


  • replied
    Originally posted by _Auron_ View Post
    Just sent you a private message about that. Sorry for the delay, just came back from Thanksgiving break and moving homes.
    Check your private messages.
    Last edited by Makis; 11-28-2016, 05:18 PM.

    Leave a comment:


  • replied
    Originally posted by brunogbrito View Post
    @Auron#5260 I had a different problem days ago, by chance I saw your topic and realized that this line was happening in my build oftenly before PERFORMING FINAL APK PACKAGE OPERATION

    Code:
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.AddRepositories: Added repository: C:\Program Files (x86)\Epic Games\4.13\Engine\Source\ThirdParty\Android\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-ads, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-auth, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-games, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-plus, 9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-lite-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-basement-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR support-v4-23.0.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-tasks-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-clearcut-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-gass-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-games-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-drive-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-nearby-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-plus-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.CopyJARs: Copying JAR support-annotations-23.0.0.jar
    Now that I solved it don't appears anymore. I'm not an expert but I know what it feels getting days to solve a problem and maybe tis can help you, idk, just a hint.
    Did you update CodeWorks? if u did, uninstall it and install 1R4u2.

    Are you using source? if you are my suggestion would be
    -delete the folders: Binaries, Build, Intermediate, DerivedDataCache
    -generate the project file and build your project again

    that fixed my problem. My problem was different than yours. it was that some libraries was missing in the APK Final Operation step, I thought it was ANT problem, or code works, but after I deleted those folders and build it again, it worked and those extracting lines are not appearing anymore.

    good luck
    Spoke with you on the Discord mobile channel about that. It's not a CodeWorks / Android SDK issue and I've been regenerating my project every now and then already. Tried packaging the APK with 4.14 Github Source, didn't help at all. In my AAR's .pom file I list the appcompat v7 as a dependency and it gets exploded into the \Intermediate\ folder during the packaging process, but it seems its resources are being ignored from UBT and/or ANT.

    Leave a comment:


  • replied
    Originally posted by Makis View Post
    Are you allowed to give a link of the sdk's .aar files and the support v7 .aar, so i can give it a try?
    Just sent you a private message about that. Sorry for the delay, just came back from Thanksgiving break and moving homes.

    Leave a comment:


  • replied
    [MENTION=12699]Auron[/MENTION]#5260 I had a different problem days ago, by chance I saw your topic and realized that this line was happening in my build oftenly before PERFORMING FINAL APK PACKAGE OPERATION

    Code:
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.AddRepositories: Added repository: C:\Program Files (x86)\Epic Games\4.13\Engine\Source\ThirdParty\Android\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-ads, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-auth, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-games, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UEDeployAndroid.ExtractAARAndJARFiles: AARImports: com.google.android.gms, play-services-plus, 9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-ads-lite-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-basement-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR support-v4-23.0.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-tasks-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-clearcut-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-gass-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-auth-base-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-games-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-drive-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-nearby-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.ExtractAARs: Extracting AAR play-services-plus-9.2.0
    UATHelper: Packaging (Android (ETC2)): AndroidAARHandler.CopyJARs: Copying JAR support-annotations-23.0.0.jar
    Now that I solved it don't appears anymore. I'm not an expert but I know what it feels getting days to solve a problem and maybe tis can help you, idk, just a hint.
    Did you update CodeWorks? if u did, uninstall it and install 1R4u2.

    Are you using source? if you are my suggestion would be
    -delete the folders: Binaries, Build, Intermediate, DerivedDataCache
    -generate the project file and build your project again

    that fixed my problem. My problem was different than yours. it was that some libraries was missing in the APK Final Operation step, I thought it was ANT problem, or code works, but after I deleted those folders and build it again, it worked and those extracting lines are not appearing anymore.

    good luck

    Leave a comment:


  • replied
    Are you allowed to give a link of the sdk's .aar files and the support v7 .aar, so i can give it a try?

    Leave a comment:


  • replied
    Same errors, no change.
    Attached Files

    Leave a comment:


  • replied
    Try merging the style.xml manually with the one in Engine/Build/Android/Java/res/values and see if that works.

    Leave a comment:


  • replied
    Seems after removing my libraries from Engine/Build/Android/Java/JavaLibs it doesn't have a duplicate .jar issue, now I'm back to where it just can't find the appcompat style (and others, as listed in the log output above) which is even copied over during the build process at \Intermediate\Android\APK\JavaLibs\appcompat-v7-23.2.0\res\values\values.xml, yet it keeps complaining that is missing. I really don't know what to do anymore after spending weeks trying to get this to build.

    Leave a comment:


  • replied
    After doing some more extensive research on this, I've figured out how the APL/UPL xml is included, as well as its language syntax thanks to the commented source here.

    Now I've got my problem narrowed down to an odd .jar inclusion in the build tool.

    LogSavePackage: Moving '../../../../../../Coding/Repos/myproj/JackpotRising/Saved/UEDPCMainMenuLevel23C78F3A49E115FEA23C4A8CFD9AC606.tmp' to '../../../../../../Coding/Repos/myproj/JackpotRising/Saved/Autosaves/Game/Levels/UEDPCMainMenuLevel.umap'LogSavePackageisplay: Finished SavePackage ../../../../../../Coding/Repos/myproj/JackpotRising/Saved/Autosaves/Game/Levels/UEDPCMainMenuLevel.umap
    LogEditorTransaction: Undo Spawn Play From Here Start
    UATHelper: Packaging (Android (ETC2)): Running AutomationTool...
    UATHelper: Packaging (Android (ETC2)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=C:/Coding/Repos/myproj/JackpotRising/JackpotRising.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=C:/Coding/Repos/myproj/JackpotRising/JackpotRising.uproject -cook -stage -archive -archivedirectory="C:/Users/Mich
    ael Angel/Desktop" -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -compressed -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ETC2 -build -CrashReporter -utf8output
    UATHelper: Packaging (Android (ETC2)): Automation.Process: Setting up command environment.
    UATHelper: Packaging (Android (ETC2)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject
    UATHelper: Packaging (Android (ETC2)): Project.Build: ********** BUILD COMMAND STARTED **********
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe JackpotRising Android Development -Project=C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject -remoteini="C:\Coding\Repos\myproj\J
    ackpotRising" -noxge -generatemanifest -NoHotReload
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: NDK version: 19, GccVersion: 4.9
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: building WITHOUT VULKAN define
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: Took 0.8978895s to run UnrealBuildTool.exe, ExitCode=0
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe JackpotRising Android Development -Project=C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject -remoteini="C:\Coding\Repos\myproj\J
    ackpotRising" -noxge -NoHotReload -ignorejunk
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Target is up to date
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: Took 0.9961589s to run UnrealBuildTool.exe, ExitCode=0
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe JackpotRising Android Development -prepfordeploy -project="C:\Coding\Repos\myproj\JackpotRising\JackpotRising.uproject" -NoHotReload -ignorejunk
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: NDK version: 19, GccVersion: 4.9
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: building WITHOUT VULKAN define
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Receipt Filename: C:\Coding\Repos\myproj\JackpotRising\Binaries\Android\JackpotRising.target
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AndroidPlugin: ..\..\..\..\Coding\Repos\myproj\JackpotRising\Plugins\JackpotRising\Source\JackpotRisingModule\JackpotRisingModule_APL.xml
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AndroidPlugin: Plugins\Runtime\GearVR\Source\GearVR\GearVR_APL.xml
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: UPL: ..\../../../../Coding/Repos/myproj/JackpotRising/Plugins/JackpotRising/Source/JackpotRisingModule/JackpotRisingModule_APL.xml
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: UPL: ..\Plugins/Runtime/GearVR/Source/GearVR/GearVR_APL.xml
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ====11/22/2016 12:45:22 PM====PREPARING TO MAKE APK=================================================================
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Writing to OBB data file C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\jackpotrising\myproj\OBBData.java ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== OBB data file up to date so not writing. ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Writing to shim file C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Shim data file up to date so not writing. ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Writing to template target file C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\jackpotrising\myproj\AlarmReceiver.java ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Writing to template target file C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\jackpotrising\myproj\DownloaderActivity.java ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Writing to template target file C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\jackpotrising\myproj\OBBDownloaderService.java ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: ==== Template target file up to date so not writing. ====
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Cleaning up files based on template dir C:\Coding\Repos\myproj\JackpotRising\Build\Android\src\com\jackpotrising\myproj
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Building Java with SDK API level 'android-19'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: C:\Coding\Repos\myproj\JackpotRising\Binaries\Android\JackpotRising-armv7-es2.apk is out of date due to newer input file C:\Coding\Repos\myproj\JackpotRising\Binaries\Android\JackpotRising-armv7-es2.so
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: UPL Init: armeabi-v7a
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Jackpot Rising SDK init
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: GearVR init
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Oculus Signature Files (osig) will be removed from APK
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: On build machine.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: bPackageDataInsideApk = True
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Obb location C:\Coding\Repos\myproj\JackpotRising/Saved/StagedBuilds/Android.obb
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Obb destination location C:\Coding\Repos\myproj\JackpotRising\Intermediate/Android/APK/assets
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Obb file exists...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Added repository: D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\google\m2repository
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Added repository: ..\..\Engine\Source\ThirdParty\Android\extras\android\m2repository
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-ads, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-auth, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-games, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-nearby, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.google.android.gms, play-services-plus, 9.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Added repository: ..\..\..\..\..\Coding\Repos\myproj\JackpotRising\Plugins\JackpotRising\Source\JackpotRisingModule\..\..\ThirdParty\repository
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.mixpanel, android, 4.8.6
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.jr, sdk, 1.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: AARImports: com.jackpotrising, jprunityandroid, 1.2.0
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Copying JAR support-v4-21.0.3.jar
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository\com\android\support\support-v4\21.0.3\support-v4-21.0.3.jar'.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: File name: 'D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository\com\android\support\support-v4\21.0.3\support-v4-21.0.3.jar'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.AndroidAARHandler.CopyJARs(String DestinationPath)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.ExtractAARAndJARFiles(String EngineDir, String UE4BuildPath, List`1 NDKArches)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
    UATHelper: Packaging (Android (ETC2)): CommandUtils.Run: Run: Took 0.965067s to run UnrealBuildTool.exe, ExitCode=5
    UATHelper: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe JackpotRising Android Development -prepfordeploy -project="C:\Coding\Repos\myproj\JackpotRis
    ing\JackpotRising.uproject" -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.11.22-12.45.21.txt'
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
    UATHelper: Packaging (Android (ETC2)): at AndroidPlatform.PostBuildTarget(UE4Build Build, FileReference UProjectPath, String TargetName, String Config)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictiona
    ry`2 InTargetToManifest)
    UATHelper: Packaging (Android (ETC2)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
    UATHelper: Packaging (Android (ETC2)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.BuildCommand.Execute()
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Process(String[] Arguments)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.MainProc(Object Param)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
    UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.Main()
    UATHelper: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
    UATHelper: Packaging (Android (ETC2)): BUILD FAILED
    PackagingResults:Error: Error Unknown Error
    Specifically this part:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Copying JAR support-v4-21.0.3.jarUATHelper: Packaging (Android (ETC2)): UnrealBuildTool: UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file 'D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository\com\android\support\support-v4\21.0.3\support-v4-21.0.3.jar'.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: File name: 'D:\Coding\Android\NVPACK\android-sdk-windows\extras\android\m2repository\com\android\support\support-v4\21.0.3\support-v4-21.0.3.jar'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.AndroidAARHandler.CopyJARs(String DestinationPath)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.ExtractAARAndJARFiles(String EngineDir, String UE4BuildPath, List`1 NDKArches)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.MakeApk(AndroidToolChain ToolChain, String ProjectName, String ProjectDirectory, String OutputPath, String EngineDirectory, Boolean bForDistribution, String CookFlavor, Boolean bMakeSeparateApks, Boolean bIncrementalPackage, Boolean bDisallowPackagingDataInApk)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UEDeployAndroid.PrepTargetForDeployment(UEBuildTarget InTarget)
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)
    NVPACK\android-sdk-windows\extras\android\m2repository\com\android\support\support-v4\21.0.3\ specifically has a .aar, .pom, -javadoc.jar, and -sources.jar. I'm assuming what it's looking for is the -sources.jar, but if I rename that to support-v4-21.0.3.jar (without '-sources'), it copies that, then has a conflict with a duplicate jar that I assume it created from the original AAR.

    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Creating output directories if needed...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Resolving Dependencies for JackpotRising...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Library dependencies:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] ------------------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Ordered libraries:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] ------------------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Found 2 versions of support-v4-21.0.3.jar in the dependency list,
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] but not all the versions are identical (check is based on SHA-1 only at this time).
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] All versions of the libraries must be the same at this time.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Versions found are:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Path: C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\support-v4-21.0.3\libs\support-v4-21.0.3.jar
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Length: 762542
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] SHA-1: 2c91c949a45a21cdecf26e03951e46c7beec9ad8
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Path: C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\libs\support-v4-21.0.3.jar
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Length: 651830
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] SHA-1: 0e40b935f2f6bfa8497a390b045a999de1bee1d5
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: BUILD FAILED
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:\Coding\Android\NVPACK\android-sdk-windows\tools\ant\build.xml:573: Jar mismatch! Fix your dependencies
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:

    Edit: I've also since made sure to clear the project and plugin's respective Binaries, Build and Intermediate folders as well as deleting and regenerating the visual studio solution to ensure there's nothing old leftover from build attempts. No further progress.
    Last edited by _Auron_; 11-22-2016, 05:32 PM.

    Leave a comment:


  • replied
    I also tried putting a <dependency> in the .pom for our SDK .aar in regards to the appcompat v7 style as briefly mentioned in Everyplay's forum thread, but still no go. It can't find the appcompat resource styles when building and fails.

    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [getbuildtools] Using latest Build Tools: 24.0.0UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Resolving Build Target for sdk-1.2.0...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [gettarget] Project Target: Android 4.4.2
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [gettarget] API level: 19
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Creating output directories if needed...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [mkdir] Created dir: C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\bin\rsObj
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [mkdir] Created dir: C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\bin\rsLibs
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Resolving Dependencies for sdk-1.2.0...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] Library dependencies:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] No Libraries
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [dependency] ------------------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: -code-gen:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [mergemanifest] Found Deleted Target File
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [mergemanifest] Merging AndroidManifest files into one.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [mergemanifest] Manifest merger disabled. Using project manifest only.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Handling aidl files...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aidl] No AIDL files to compile.
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Handling RenderScript files...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] ----------
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [echo] Handling Resources...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] Generating resource IDs...
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\add_custom_amount.xml:23: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\add_custom_amount.xml:35: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\add_custom_amount.xml:51: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\dialog_layout.xml:13: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.Tex
    UATHelper: Packaging (Android (ETC2)): tAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\dialog_layout.xml:34: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\dialog_layout.xml:48: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\email_verify_dialog.xml:13: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Ba
    UATHelper: Packaging (Android (ETC2)): se.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\email_verify_dialog.xml:25: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\email_verify_dialog.xml:72: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\email_verify_dialog.xml:84: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\launch_dialog.xml:13: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Title').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\launch_dialog.xml:25: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\launch_dialog.xml:45: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.Tex
    UATHelper: Packaging (Android (ETC2)): tAppearance.Widget.AppCompat.Toolbar.Subtitle').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\launch_dialog.xml:59: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\signout_dialog.xml:8: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Title').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\signout_dialog.xml:20: error: Error:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\signout_dialog.xml:40: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.Te
    UATHelper: Packaging (Android (ETC2)): xtAppearance.Widget.AppCompat.Toolbar.Subtitle').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\signout_dialog.xml:53: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\simple_dialog.xml:12: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.Tex
    UATHelper: Packaging (Android (ETC2)): tAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\layout\simple_dialog.xml:24: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@style/Base.TextAppearance.AppCompat.Subhead').
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_about_us.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_add_money_to_account.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_add_payment_method_acitvity.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_card_details.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_card_list.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_confirm_attempt.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_dummy_game.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_forgot_password.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_leader_board.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_send_score.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_sign_in.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt] C:\Coding\Repos\myproj\JackpotRising\Intermediate\Android\APK\JavaLibs\sdk-1.2.0\res\menu\menu_tournament_entry.xml:5: error: No resource identifier found for attribute 'showAsAction' in package 'com.jr.sdk'
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [aapt]
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: BUILD FAILED
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:\Coding\Android\NVPACK\android-sdk-windows\tools\ant\build.xml:597: The following error occurred while executing this line:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:\Coding\Android\NVPACK\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
    UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:\Coding\Android\NVPACK\android-sdk-windows\tools\ant\build.xml:694: null returned: 1
    SDK's .pom:

    <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

    <groupId>com.jr</groupId>
    <artifactId>sdk</artifactId>
    <version>1.2.0</version>
    <packaging>aar</packaging>

    <dependencies>
    <dependency>
    <groupId>android.support.v7</groupId>
    <artifactId>appcompat</artifactId>
    <version>23.1.1</version>
    <scope>compile</scope>
    <type>aar</type>
    </dependency>
    </dependencies>

    </project>
    Last edited by _Auron_; 11-21-2016, 06:31 PM.

    Leave a comment:


  • replied
    Right, sorry I'm not sure why I said <repositories>, it is exactly like that in my MyModule_APL.xml file within \Plugins\MyPlugin\Source\MyModule.

    Does it need to be MyModule_APL.xml or MyModule_UPL.xml in 4.13? I've tried both but neither adds to the aar_imports.txt when doing an APK build, that's why I had to manually add to the Engine's aar_imports.txt.

    Even though the output log shows my AAR's being imported and extracted, it won't pick up the layout styles used in our SDK from Appcompat v7 even if explicitly included before my SDK.
    Last edited by _Auron_; 11-21-2016, 05:51 PM.

    Leave a comment:


  • replied
    I'm not sure what repositories section you are referring to, it is just AARImports something like this:

    Code:
    <AARImports>
    	<insertValue value="repositories $S(PluginDir)/extras" />
    	<insertNewline/>
    	<insertValue value="com.coolcompany.neatlibrary,superusefulstuff,1.2.0" />
    	<insertNewline/>
    </AARImports>
    Where it would look for m2repository directories in extras. Or, can just use repository for path to one directory instead of it searching.

    Leave a comment:


  • replied
    Originally posted by Makis View Post
    Check this thread, we were talking with Chris about how to add .aar for Everyplay plugin. You might find it helpful.
    https://forums.unrealengine.com/show...eryplay-Plugin
    Thanks Makis. I've gone through and checked against my project after getting past an unrelated build error. Now I am able to import my AARs, but it fails to build the APK because our SDK has a style dependency on Appcompat v7. If I import the .aar for Appcompat v7, it still doesn't work.

    I also have my APL in my plugin's directory but the <AARImports> and <repositories> tags aren't parsed in the UBT, I had to manually update aar_imports.txt in \4.13\Engine\Build\Android\Java\.

    Since AndroidManifest xml merging is disabled right now would that be a cause of that?

    Leave a comment:

Working...
X