@2259860673 写道:
新建helloworld工程 上面是我的构建配置
我的编译api 是选 android-25的 , 下面是编译logMerging result:SUCCESS
Merged manifest saved to E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\manifests\full\release\AndroidManifest.xml
:hello_world:processReleaseManifest (Thread[Task worker Thread 2,5,main]) completed. Took 0.229 secs.
:hello_world:processReleaseResources (Thread[main,5,main]) started.
:hello_world:processReleaseResources
Executing task ':hello_world:processReleaseResources' (up-to-date check took 0.007 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ':hello_world:processReleaseResources'.
Starting process 'command 'D:\Android\sdk\build-tools\25.0.2\aapt.exe''. Working directory: E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app Command: D:\Android\sdk\build-tools\25.0.2\aapt.exe package -f --no-crunch -I D:\Android\sdk\platforms\android-25\android.jar -M E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\manifests\full\release\AndroidManifest.xml -S E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\res\merged\release -m -J E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\source\r\release -F E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\res\resources-release.ap_ --custom-package org.cocos2d.helloworld -0 apk --output-text-symbols E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\symbols\release --no-version-vectors
Successfully started process 'command 'D:\Android\sdk\build-tools\25.0.2\aapt.exe''
Aapt output file E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\res\resources-release.ap_
:hello_world:processReleaseResources (Thread[main,5,main]) completed. Took 0.583 secs.
:hello_world:generateReleaseSources (Thread[Task worker,5,main]) started.
:hello_world:generateReleaseSources
Skipping task ':hello_world:generateReleaseSources' as it has no actions.
:hello_world:generateReleaseSources (Thread[Task worker,5,main]) completed. Took 0.001 secs.
:hello_world:compileReleaseJavaWithJavac (Thread[main,5,main]) started.
:hello_world:compileReleaseJavaWithJavac
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java', not found
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java', not found
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\release\java', not found
Executing task ':hello_world:compileReleaseJavaWithJavac' (up-to-date check took 0.015 secs) due to:
No history is available.
All input files are considered out-of-date for incremental task ':hello_world:compileReleaseJavaWithJavac'.
Compiling with source level 1.7 and target level 1.7.
:hello_world:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java', not found
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\release\java', not found
Compiling with JDK Java compiler API.
:hello_world:compileReleaseJavaWithJavac FAILED
:hello_world:compileReleaseJavaWithJavac (Thread[main,5,main]) completed. Took 0.086 secs.FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':hello_world:compileReleaseJavaWithJavac'.Could not find tools.jar. Please check that D:\java contains a valid JDK installation.
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.BUILD FAILED
Total time: 15 mins 6.172 secs
Stopped 0 compiler daemon(s).
执行命令出错,返回值:1。:hello_world:compileReleaseJavaWithJavac
file or directory 'E:\cocos\NewProject\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\src\main\java', not found 这是什么鬼
帖子: 4
参与者: 1