复现步骤:
- 下载最新的creator1.6.2 覆盖安装当前的1.6.1版本
- 在creator新建一个HelloWorld工程
- 打开“项目”–>“构建发布”,编译阶段报错了,错误日志如下:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:hello_world’.
Failed to notify project evaluation listener.
Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 1.769 secs
Stopped 0 worker daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring project ‘:hello_world’.] from daemon DaemonInfo{pid=1067, address=[91534452-6f82-496b-b4d3-76099cdbb175 port:49544, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1508505559437, context=DefaultDaemonContext[uid=1f072c4a-d739-42d1-a708-dd16a837d4b7,javaHome=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home,daemonRegistryDir=/Users/tony/.gradle/daemon,pid=1067,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} (build should be done).
Error running command, return code: 1.
项目的设置如下:
系统环境: macOS 10.12.6
android studio版本:2.3.3
其中的NDK版本,是在android studio的sdkmanager中下载的最新版,15.2.4203891
Ant版本:apache-ant-1.9.6
附加说明,导出的android studio项目在我的Android Studio中是可以正常的编译,打包的~ 但是在最新的creator下就是不行,本人尝试更改了用不用的NDK版本去打包,都是不行,
请问这个到底是新版creator的bug,还是我哪里的环境设置的有问题?