I have problem with build android projectįailed to compile resources with the following parameters: UnityEngine.GUIUtility rocessEvent(Int32, IntPtr) UnityEngine.GUIUtility rocessEvent(Int32, Unity Technologies View attachment 252149 TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, System.String stdin) ( psi, waitingForProcessToExit, System.String errorMsg, System.String input) ( p, waitingForProcessToExit, System.String errorMsg) : com/android/apksigner/ApkSignerTool : Unsupported major.minor version 52.0Īt 1(Native Method)Īt (ClassLoader.java:800)Īt (SecureClassLoader.java:142)Īt (URLClassLoader.java:449)Īt $100(URLClassLoader.java:71)Īt $1.run(URLClassLoader.java:361)Īt $1.run(URLClassLoader.java:355)Īt (Native Method)Īt (URLClassLoader.java:354)Īt (ClassLoader.java:425)Īt (ClassLoader.java:412)Īt $AppClassLoader.loadClass(Launcher.java:308)Īt (ClassLoader.java:358)Īt (LauncherHelper.java:482) It is a bit sloppy to leave two java/bin folders in your path so you should be advised to clean those up as a separate task.Īlso, put all above environment variables in the /etc/environment file for auto loading on system boot.Click to expand.CommandInvokationFailure: Failed to sign APK package.ĭ:\Android\sdk\build-tools\26.0.2\apksigner.bat sign -ks "E:/B_6-5 2017.2.0f3/20171024_v1.0.0_n1_1st/touch.keystore" -ks-pass stdin -ks-key-alias "tm" -key-pass stdin "E:\B_6-5 2017.2.0f3\20171024_v1.0.0_n1_1st\Temp/StagingArea/Package.apk" Note that the change to the PATH variable put the new Java bin folders first so that they override any existing java/bins in the path. # export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH Set the Java environment variables using the following commands: Setup JAVA_HOME Variable # export JAVA_HOME=/opt/jdk1.8.0_51 Most of Java-based applications use environment variables to work. Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_51-b16) # alternatives -set javac /opt/jdk1.8.0_51/bin/javacĬheck the installed version of Java using the following command. # alternatives -set jar /opt/jdk1.8.0_51/bin/jar # alternatives -install /usr/bin/javac javac /opt/jdk1.8.0_51/bin/javac 2 We also recommend to setup javac and jar commands path using alternatives: # alternatives -install /usr/bin/jar jar /opt/jdk1.8.0_51/bin/jar 2 # alternatives -install /usr/bin/java java /opt/jdk1.8.0_51/bin/java 2Īt this point Java 8 has been successfully installed on your system. The alternatives command is available in the chkconfig package. Install Java with alternativesĪfter extracting the archive file, use the alternatives command to install it. Note: If the above wget command doesn’t not work for you, watch this example video to download the Java source archive using the terminal. # wget -no-cookies -no-check-certificate -header "Cookie: gpw_e24=http://oraclelicense=accept-securebackup-cookie" "" Download latest Java archive Download latest Java SE Development Kit 8 release from its official download page or use following commands to download from the shell. You need to upgrade your Java version to Java 8. Go to: /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/istĪnd replace the JVM version with: JVMVersion Make sure the JDK home path is set to 1.8.Īnother approach which might help is by instructing IntelliJ IDEA which JDK version to start up with. Go to menu File* → Project Structure → SDKs.Go to Maven Settings → Maven → Runner.Go to Maven Settings → Maven → Importing.To solve this, it's always better to have the JDK and JRE pointed to the same version. The reported number is the required number, not the number you are using. Thus, the 'major.minor version 52.0' error is possibly because the jar was compiled in JDK 1.8, but you are trying to run it using a JDK 1.7 environment. The error regarding the unsupported major.minor version is because during compile time you are using a higher JDK and a lower JDK during runtime.
0 Comments
Leave a Reply. |