Hi,
I am getting issue in compiling the android apk. Please help.
Thanks in adavnce.
This is what I am getting in native.log.
Building mode: release
Using Android Studio project : D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio
Building apk…
running: ‘“D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’
Initialized native services in: C:\Users\E508.gradle\native
Removing 2 daemon stop events from registry
Previous Daemon (9156) stopped at Tue Jul 03 15:18:52 IST 2018 stop command received
Previous Daemon (8804) stopped at Tue Jul 03 15:18:53 IST 2018 stop command received
Previous Daemon (5592) stopped at Tue Jul 03 15:55:41 IST 2018 stop command received
Previous Daemon (7732) stopped at Tue Jul 03 15:55:41 IST 2018 stop command received
Starting a Gradle Daemon, 4 stopped Daemons could not be reused, use --status for details
Starting process ‘Gradle build daemon’. Working directory: C:\Users\E508.gradle\daemon\4.1 Command: C:\Program Files (x86)\Java\jdk1.7.0_03\bin\java.exe -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\E508.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1\lib\gradle-launcher-4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.1
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 8.668 secs.
The client will now receive all logging from the daemon (pid: 7264). The daemon log file: C:\Users\E508.gradle\daemon\4.1\daemon-7264.out.log
Starting build in new daemon [memory: 1.0 GB]
Using 8 worker leases.
Creating new cache for fileHashes, path C:\Users\E508.gradle\caches\4.1\fileHashes\fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@16ab910
Creating new cache for resourceHashesCache, path C:\Users\E508.gradle\caches\4.1\fileHashes\resourceHashesCache.bin, access org.gradle.cache.internal.DefaultCacheAccess@16ab910
Creating new cache for fileHashes, path D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio.gradle\4.1\fileHashes\fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@183f5e1
Creating new cache for plugin-use-metadata, path C:\Users\E508.gradle\caches\4.1\plugin-resolution\plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@1e56215
Creating new cache for client-status, path C:\Users\E508.gradle\caches\4.1\plugin-resolution\client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@1e56215
Starting Build
Settings evaluated using settings file ‘D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\settings.gradle’.
Projects loaded. Root project using build file ‘D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:Cinderella’, project ‘:libcocos2dx’]
Parallel execution is an incubating feature.
Evaluating root project ‘proj.android-studio’ using build file ‘D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\build.gradle’.
Creating new cache for metadata-1.1/results, path C:\Users\E508.gradle\caches\transforms-1\metadata-1.1\results.bin, access org.gradle.cache.internal.DefaultCacheAccess@1f2bcf6
Creating new cache for metadata-2.23/module-metadata, path C:\Users\E508.gradle\caches\modules-2\metadata-2.23\module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@39e063
Creating new cache for metadata-2.23/artifact-at-repository, path C:\Users\E508.gradle\caches\modules-2\metadata-2.23\artifact-at-repository.bin, access org.gradle.cache.internal.DefaultCacheAccess@39e063
Evaluating project ‘:project1’ using build file ‘D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build.gradle’.
FAILURE: Build failed with an exception.
-
Where:
Build file ‘D:\User\project\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build.gradle’ line: 3 -
What went wrong:
A problem occurred evaluating project ‘:project1’.
java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 19s
Error running command, return code: 1.