Android Packaging failed :unknown Error

having trouble to package android game
i recently update my android codework to 1R6 and i start getting this problem

plus i dont know why it keeps running to my other unrelated folders when i tried to package my game

i my settings and error logs here , please help
thankyou

Check again your path you entered in the first picture

Or delete all android tools and reinstall it, maybe The update to Version 1R6 has modified or deleted some files

i reinstall my codework (to 1r6 again ) and change the directory path , but it still give me the same problem

Have you set up the Android settings section in project settings?

yes i have , and the error msg is actually the same like the one before reinstallation

Hello yuukyun,

When you reinstalled the SDK, did you restart your computer between uninstalling and reinstalling the SDK? This can help ensure that all of the original installation is gone. Also, are you installing the SDK provided with the editor or one downloaded online?

yes, I restart when i uninstall and installing my sdk , i install it from androidcodeworks’s sdk manager

Can you show a screenshot of exactly what you’re installing through the SDK manager? Please try installing through the suggested method in our documentation, by installing the CodeWorksforAndroid-1R5-windows.exe located in your engine installation at Epic Games\4.15\Engine\Extras\AndroidWorks\Win64

i reinstall my android codeworks back to 1r5 using installer from \4.15\Engine\Extras\AndroidWorks\Win64

but it still give me probably same error again , here some screenshot from my settings and sdk manager + packaging error log

Hey.

First thing - when you change something crutial in Java - delete the E:\Project\UNreal\RisekingdomProject\Intermediate\Android\ directory. Unreal has nasty problems with cacheing and sometimes You have to clear the cache yourself. I’m usually do it every build, just in case.

Second - always use the recommended codeworks, unless You are really good in modifying the engine and in Android overall :slight_smile: You are using 1r5 now - so good.

Third - download all of the extras from Android SDK Manager. It doesn’t weight much, but for instance - I can see You doesn’t have Google Play Services downloaded which might be an issue.

Now, from the log I can see that there is an issue with extracting google play services from AAR:

Error: E:\Project\UNreal\RisekingdomProject\Intermediate\Android\APK\JavaLibs\play-services-ads-9.2.0 is not a valid project (AndroidManifest.xml not found).

Most of the JavaLibs are the directories extracted from AAR files located somewhere here:

E:\Apps\EpicGames\AndroidCode_Works\android-sdk-windows\extras\android\m2repository
…..\Engine\Source\ThirdParty\Android\extras\google\m2repository
…..\Engine\Source\ThirdParty\Android\extras\android\m2repository

This is why I recommend getting all of the extras from SDK Manager :wink:

Thanks , i fixed it now , it can package my game to apk

i have some question , if i want to repackage my game , do i need to clear that cache again ?