cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

Missing assets.srcDir in CppTests #19557

Open zhang-ray opened 5 years ago

zhang-ray commented 5 years ago
  1. By this document: after built and run CppTests project on my phone, the program was flashback;

However, I can resolve this issue by following steps:

  1. cp -r $the_root/tests/cpp-tests/Resources $the_root/tests/cpp-tests/proj.android/app/Resources
  2. rm -rf $the_root/tests/cpp-tests/proj.android/app/Resources/test_image*
  3. insert assets.srcDir "./Resources" into android.sourceSets.main of $the_root/tests/cpp-tests/proj.android/app/build.gradle file
rh101 commented 5 years ago

Looks like it may have been fixed in PR #19732