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

    .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?

    #2
    aar-imports.txt is read to get the repository locations to search. It expects to find them in package expanded directory structure in any m2repository directory in the path provided. You can also point to the root of a respository with the "repository [path]" directly.

    The other lines specify the AAR to use. "com.google.android.gms,play-services-ads,9.2.0" for example will look for com/google/android/gms/play-services-ads/9.2.0 for a play-services-ads-9.2.0.aar and play-services-ads-9.2.0.pom listing the dependencies. It will first look in the android-sdk-windows/extras (ANDROID_HOME = android-sdk-windows) in any m2repository directories, then fall back to the ones in Engine/ThirdParty/Android/extras.

    Right now the AAR support is sufficient for Google Play services requirements (we needed a way to reduce the number of methods since the newer versions were getting too big to include everything by default). It does work for other AARs, but I don't do all the merging steps that may be required for general AAR support. I'm working on switching our build process over to Gradle, but it won't be for a few releases.

    If you don't want to use AARs you can still place your files in Engine/Build/Android/Java/JavaLibs (or have prebuildCopies section of a UPL file copy it). Look at downloader_library for an example.

    Comment


      #3
      Thanks Chris, I will look more into this. We are working on a plugin for Unreal Engine to have developers use our platform's mobile SDK as an instantiated overlay activity through JNI on Android, and I could not get the .AARs of our libraries to be imported. I may need to try packing them into .JAR or write a custom build process as a workaround until a release has native import support.

      Comment


        #4
        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
        Pandora Entertainment
        github.com/PandoraEntertainment
        [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

        Comment


          #5
          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?

          Comment


            #6
            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.

            Comment


              #7
              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.

              Comment


                #8
                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.

                Comment


                  #9
                  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.

                  Comment


                    #10
                    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.

                    Comment


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

                      Comment


                        #12
                        Same errors, no change.
                        Attached Files

                        Comment


                          #13
                          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?
                          Pandora Entertainment
                          github.com/PandoraEntertainment
                          [PLUGIN][FREE] AdColony, AppLovin, Chartboost, UnityAds, Vungle, Sharing, OneSignal, Facebook, Everyplay.

                          Comment


                            #14
                            [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

                            Comment


                              #15
                              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.

                              Comment

                              Working...
                              X