cocos Failed to notify project evaluation listener. java.lang.exceptionInInitializerError
OS : Mac Bigsur
cocos creator 빌드진행시 오류를 발생한다 ( 컴파일단계에서)
1. python 2.7xx 버전 체크
www.python.org/downloads/release/python-2718/
Python Release Python 2.7.18
The official home of the Python Programming Language
www.python.org
python3으로 하면 동작하지않는다.
2. java version Check
java 최신버전으로 설치를 하면 오류를 발생시킴.
Mac에 내장된 java를 모두 지워준다.
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/Java/JavaVirtualMachines
sudo rm -rf /Library/Application\ Support/Oracle/Java/
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
컴퓨터 재시작
자바 8 설치 Download and install Java jdk-8u271-macosx-x64
컴퓨터 재시작
(Stack overflow 출처)
Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JD
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-linear-gradient:compileDebugJavaWithJavac'. > Could not find tools.jar. Please check that /L...
stackoverflow.com
3. NDK PATH 조정
NDK 안정성 으로 19버전이 잘동작함.
일반적인 ndk 위치.
아래로 변경.
NDK Root : /Users/ [YOUR_COMPUTER_USER_NAME] /Library/Android/sdk/ndk/19.2.5345600
만약 ndk가 없다면
안드로이드 스튜디오 설치
SDK Manager -> Android Sdk -> Sdk Tools
19.2.xx 버전 설치
4. 빌드시 타겟 android 버전 설정
최소 버전 27 버전 보다 높게 설정
cocos creator spineListener (0) | 2021.05.21 |
---|---|
cocos creator unexpected element <queries> found in AndroidManifest.xml (0) | 2021.05.17 |
SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) (0) | 2021.05.07 |
How to define cocos creator constant variable? (0) | 2021.05.04 |
[cocos creator js ] how to UI Components , button Hide & Active ? (0) | 2021.04.16 |
how to cocos creator single ton via Javascript (0) | 2021.04.15 |