v3.17
i guess the default brach that i can download with clone command.
git clone https://github.com/cocos2d/cocos2d-x.git
3.17 works for me on 3 machines.
i tried again cocos gen-libs
it created ios and mac libs but again showing these errors :
Task :libcocos2dx:extractDebugAnnotations
Putting task artifact state for task â:libcocos2dx:extractDebugAnnotationsâ into context took 0.0 secs.
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/cocos/platform/android/libcocos2dx/src/main/javaâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/cocos/platform/android/libcocos2dx/src/main/javaâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/cocos/platform/android/libcocos2dx/src/debug/javaâ, not found
Skipping task â:libcocos2dx:extractDebugAnnotationsâ as it is up-to-date (took 0.022 secs).
:libcocos2dx:extractDebugAnnotations (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.024 secs.
:libcocos2dx:mergeDebugConsumerProguardFiles (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:mergeDebugConsumerProguardFiles
Putting task artifact state for task â:libcocos2dx:mergeDebugConsumerProguardFilesâ into context took 0.001 secs.
Skipping task â:libcocos2dx:mergeDebugConsumerProguardFilesâ as it is up-to-date (took 0.001 secs).
:libcocos2dx:mergeDebugConsumerProguardFiles (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.002 secs.
:libcocos2dx:transformResourcesWithMergeJavaResForDebug (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:transformResourcesWithMergeJavaResForDebug
Putting task artifact state for task â:libcocos2dx:transformResourcesWithMergeJavaResForDebugâ into context took 0.0 secs.
Skipping task â:libcocos2dx:transformResourcesWithMergeJavaResForDebugâ as it is up-to-date (took 0.007 secs).
:libcocos2dx:transformResourcesWithMergeJavaResForDebug (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.008 secs.
:libcocos2dx:transformClassesAndResourcesWithSyncLibJarsForDebug (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:transformClassesAndResourcesWithSyncLibJarsForDebug
Putting task artifact state for task â:libcocos2dx:transformClassesAndResourcesWithSyncLibJarsForDebugâ into context took 0.001 secs.
Skipping task â:libcocos2dx:transformClassesAndResourcesWithSyncLibJarsForDebugâ as it is up-to-date (took 0.015 secs).
:libcocos2dx:transformClassesAndResourcesWithSyncLibJarsForDebug (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.017 secs.
:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug
Putting task artifact state for task â:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebugâ into context took 0.0 secs.
Skipping task â:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebugâ as it is up-to-date (took 0.003 secs).
:libcocos2dx:transformNativeLibsWithSyncJniLibsForDebug (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.005 secs.
:libcocos2dx:bundleDebug (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:bundleDebug
Putting task artifact state for task â:libcocos2dx:bundleDebugâ into context took 0.0 secs.
Skipping task â:libcocos2dx:bundleDebugâ as it is up-to-date (took 0.003 secs).
:libcocos2dx:bundleDebug (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.006 secs.
:libcocos2dx:compileDebugSources (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:compileDebugSources
Skipping task â:libcocos2dx:compileDebugSourcesâ as it has no actions.
:libcocos2dx:compileDebugSources (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.001 secs.
:libcocos2dx:assembleDebug (Thread[Task worker for â:â Thread 2,5,main]) started.
Task :libcocos2dx:assembleDebug
Skipping task â:libcocos2dx:assembleDebugâ as it has no actions.
:libcocos2dx:assembleDebug (Thread[Task worker for â:â Thread 2,5,main]) completed. Took 0.001 secs.
Task :CppEmptyTest:mergeDebugAssets
Putting task artifact state for task â:CppEmptyTest:mergeDebugAssetsâ into context took 0.001 secs
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
Executing task â:CppEmptyTest:mergeDebugAssetsâ (up-to-date check took 0.014 secs) due to:
Output property âoutputDirâ file /Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/build/intermediates/assets/debug has changed.
Output property âoutputDirâ file /Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/build/intermediates/assets/debug/bang.png has been removed.
Output property âoutputDirâ file /Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/build/intermediates/assets/debug/fonts has been removed.
All input files are considered out-of-date for incremental task â:CppEmptyTest:mergeDebugAssetsâ.
Unable do incremental execution: full task run
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
:CppEmptyTest:mergeDebugAssets (Thread[Task worker for â:â Thread 3,5,main]) completed. Took 0.263 secs.
:CppEmptyTest:transformClassesWithDexBuilderForDebug (Thread[Task worker for â:â Thread 3,5,main]) started.
Task :CppEmptyTest:transformClassesWithDexBuilderForDebug
Putting task artifact state for task â:CppEmptyTest:transformClassesWithDexBuilderForDebugâ into context took 0.007 secs.
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
Skipping task â:CppEmptyTest:transformClassesWithDexBuilderForDebugâ as it is up-to-date (took 0.015 secs).
:CppEmptyTest:transformClassesWithDexBuilderForDebug (Thread[Task worker for â:â Thread 3,5,main]) completed. Took 0.024 secs.
:CppEmptyTest:transformDexArchiveWithExternalLibsDexMergerForDebug (Thread[Task worker for â:â Thread 3,5,main]) started.
Task :CppEmptyTest:transformDexArchiveWithExternalLibsDexMergerForDebug
Putting task artifact state for task â:CppEmptyTest:transformDexArchiveWithExternalLibsDexMergerForDebugâ into context took 0.001 secs.
Skipping task â:CppEmptyTest:transformDexArchiveWithExternalLibsDexMergerForDebugâ as it is up-to-date (took 0.005 secs).
:CppEmptyTest:transformDexArchiveWithExternalLibsDexMergerForDebug (Thread[Task worker for â:â Thread 3,5,main]) completed. Took 0.007 secs.
:CppEmptyTest:transformDexArchiveWithDexMergerForDebug (Thread[Task worker for â:â Thread 3,5,main]) started.
Task :CppEmptyTest:transformDexArchiveWithDexMergerForDebug
Putting task artifact state for task â:CppEmptyTest:transformDexArchiveWithDexMergerForDebugâ into context took 0.001 secs.
Skipping task â:CppEmptyTest:transformDexArchiveWithDexMergerForDebugâ as it is up-to-date (took 0.016 secs).
:CppEmptyTest:transformDexArchiveWithDexMergerForDebug (Thread[Task worker for â:â Thread 3,5,main]) completed. Took 0.018 secs.
:CppEmptyTest:transformNativeLibsWithMergeJniLibsForDebug (Thread[Task worker for â:â Thread 3,5,main]) started.
Task :CppEmptyTest:transformNativeLibsWithMergeJniLibsForDebug
Putting task artifact state for task â:CppEmptyTest:transformNativeLibsWithMergeJniLibsForDebugâ into context took 0.001 secs.
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
Skipping task â:CppEmptyTest:transformNativeLibsWithMergeJniLibsForDebugâ as it is up-to-date (took 0.023 secs).
:CppEmptyTest:transformNativeLibsWithMergeJniLibsForDebug (Thread[Task worker for â:â Thread 3,5,main]) completed. Took 0.024 secs.
:CppEmptyTest:transformNativeLibsWithStripDebugSymbolForDebug (Thread[Task worker for â:â,5,main]) started.
Task :CppEmptyTest:transformNativeLibsWithStripDebugSymbolForDebug
Putting task artifact state for task â:CppEmptyTest:transformNativeLibsWithStripDebugSymbolForDebugâ into context took 0.001 secs.
Skipping task â:CppEmptyTest:transformNativeLibsWithStripDebugSymbolForDebugâ as it is up-to-date (took 0.002 secs).
:CppEmptyTest:transformNativeLibsWithStripDebugSymbolForDebug (Thread[Task worker for â:â,5,main]) completed. Took 0.004 secs.
:CppEmptyTest:transformResourcesWithMergeJavaResForDebug (Thread[Task worker for â:â,5,main]) started.
Task :CppEmptyTest:transformResourcesWithMergeJavaResForDebug
Putting task artifact state for task â:CppEmptyTest:transformResourcesWithMergeJavaResForDebugâ into context took 0.001 secs.
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
file or directory â/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/libsâ, not found
Skipping task â:CppEmptyTest:transformResourcesWithMergeJavaResForDebugâ as it is up-to-date (took 0.019 secs).
:CppEmptyTest:transformResourcesWithMergeJavaResForDebug (Thread[Task worker for â:â,5,main]) completed. Took 0.021 secs.
:CppEmptyTest:packageDebug (Thread[Task worker for â:â,5,main]) started.
Task :CppEmptyTest:packageDebug
Putting task artifact state for task â:CppEmptyTest:packageDebugâ into context took 0.001 secs.
Skipping task â:CppEmptyTest:packageDebugâ as it is up-to-date (took 0.035 secs).
:CppEmptyTest:packageDebug (Thread[Task worker for â:â,5,main]) completed. Took 0.047 secs.
:CppEmptyTest:assembleDebug (Thread[Task worker for â:â,5,main]) started.
Task :CppEmptyTest:assembleDebug
Skipping task â:CppEmptyTest:assembleDebugâ as it has no actions.
:CppEmptyTest:assembleDebug (Thread[Task worker for â:â,5,main]) completed. Took 0.001 secs.
BUILD SUCCESSFUL in 9s
52 actionable tasks: 2 executed, 50 up-to-date
Move apk to /Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/bin/debug/android
Build succeed.
Traceback (most recent call last):
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/bin/cocos.pyâ, line 1072, in
run_plugin(command, argv, plugins)
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/bin/cocos.pyâ, line 961, in run_plugin
plugin.run(argv, dependencies_objects)
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/plugins/plugin_generate/gen_libs.pyâ, line 79, in run
self.compile()
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/plugins/plugin_generate/gen_libs.pyâ, line 176, in compile
self.compile_android()
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/plugins/plugin_generate/gen_libs.pyâ, line 368, in compile_android
cocos.copy_files_with_config(copy_cfg, obj_dir, android_out_dir)
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/bin/cocos.pyâ, line 799, in copy_files_with_config
src_dir, src_dir, dst_dir, include_rules, exclude_rules)
File â/Volumes/DATA/cocos2d-x/cocos2d-x/tools/cocos2d-console/bin/cocos.pyâ, line 818, in copy_files_with_rules
for name in os.listdir(src):
OSError: [Errno 2] No such file or directory: '/Volumes/DATA/cocos2d-x/cocos2d-x/tests/cpp-empty-test/proj.android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a