I have been having an issue for the last couple of days packaging my Android project, when I package it as a shipping build with the option to include debug files turned off the project packages perfectly fine with no issues, however there are still debug files packaged with it even though I set it not to include them and packaged it as a shipping build, a little google search told me that to remove all of the debug files so the the .APK can actually be uploaded to my Google Play Developer Console I needed to check the “For Distribution” box in the package settings, so I did. This is where my issues starts… If I try to package my project with the “For Distribution” check box checked it fails every time with the same error
[2017.05.25-19.51.41:741]UATHelper: Packaging (Android
(ATC)): C:\NVPACK\android-sdk-windows ools\ant\build.xml:871: Can’t read [C:\NVPACK\android-sdk-windows\platforms\android-25\android.jar] (Can’t process class [java/text/CollationElementIterator.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7)))
I have tried rolling back my JDK version from 1.8 to 1.7, I have tried doing a full rebuild on packaging, I have used Codeworks version 1R4,1R5, and 1R6…nothing I do makes any difference except unchecking “For Distribution”, no matter which codeworks I am using or which Java SDK I am using I get the same error on every package attempt unless I uncheck the “For Distribution” box, and as I stated above, I can successfully package the project with a development or a shipping build as long as that one check box remains unchecked, but according to what I found on google after I was unable to upload my .APK to my Google Play Developer Console that check box must be checked.