Hi devel.bmad,
Thank you for all your help over the last couple of days. The problem appears to be that I don’t have Java 6 from Apple. I installed that and it’s all fine now. Thought I should let you know.
Thanks~
Hi devel.bmad,
Thank you for all your help over the last couple of days. The problem appears to be that I don’t have Java 6 from Apple. I installed that and it’s all fine now. Thought I should let you know.
Thanks~
Hi I think I’m having the same issue, could you please elaborate on how you fixed the issue?
thanks in advance!
Hey there, I did a bunch of useless things, but what solved my problem was to install Java 6 from Apple, namely this: Download Java for OS X 2017-001
BTW, that staff guy psauer said to install Java 6 from Apple AND Java 7 from Oracle, which are what I have on my Mac.
Hope that solves your problem too.
I just tried that but there still seems to be a problem, do you have both java 6 from apple and java 7 from oracle installed?
And i noticed you mentioned something about having java 8? Did you have to remove that as well?
thanks!
Yes I have both 6 and 7 installed.
As for Java 8, I’m not sure if it matters, since I’ve removed it quite some time before I installed Java 6, while I was still tinkering with my JAVA_HOME. But in short, I did have Java 8 removed when my editor built correctly.
Hey guys,
Here’s a few test I figure out during Android packaging on Mac Yosemite 10.10.3.
I have JAVA_HOME set up properly in bash_profile: export JAVA_HOME=$(/usr//java_home)
On UE 4.7.5 / 4.7.6
Java 6 must be install on Yosemite as 4.7 is using Java 6 compiler.
Download Java for OS X 2017-001
Android packaging work fine but javac warning appear.
[javac] warning: “plenty of classes” : major version 51 is newer than 50, the highest major version supported by this compiler.
On UE 4.8
Android package will fail, saying
JAVA_HOME is not defined correctly
to solve this problem:
You need to know where is your Java directory. By using terminal
touch ~/.bash_profile; open
~/.bash_profile
Edit your JAVA_HOME to your latest java directory
export
JAVA_HOME=“/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home”
Save the text file & type this on terminal to refresh bash_profile
source ~/.bash_profile
There is another problem I encounter lately
After package Android several times, if I were to change Company name in Android package name, it will fail to package instantly.
To solve that piece of puzzle, I need to delete the previous Company directory in
Build/Android/src/com/OLD_COMPANY
Intermediate/Android/APK/src/com/OLD_COMPANY
As for Android KitKat & above IMMERSIVE MODE
It doesn’t work with the current ue4 java boolean ShouldHideUI. Edit the file
Users/Shared/UnrealEngine/4.8/Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java
line 557, remove ShouldHideUI and save it.
if (android.os.Build.VERSION.SDK_INT >= 19)
I don’t mean to make it more complicated, but I tested with 4.8(launcher version and source build) on 10.10.3, JAVA_HOME is not needed by UE. I deleted the line from my bash_profile.
I didn’t try it on 4.7 but I would guess that it’s not needed either, like the staffs insist.
Java 6 is really important and necessary. I did solve my problem by installing Java 6.
And thanks for the last bit. I’ll take note as it would probably be useful some time.
Shinichi - I recently had a similar problem to your post about changing the android package name. I made a similar super-minor change to my package name (fixed a one-character typo), and couldn’t package - and then I couldn’t get the old name to package!!! If I didn’t see your post about deleting /build/src/com/company/project, etc. I would have been bouncing off the walls!! - THX