使用最新版的cocos2d-x 3.17.1打包到安卓,整几天了,都没弄好

Error:Android Source Generator: Error: Can’t find bundle for base name messages.AndroidJpsBundle, locale en_US
java.util.MissingResourceException: Can’t find bundle for base name messages.AndroidJpsBundle, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:773)
at org.jetbrains.jps.android.AndroidJpsBundle.getBundle(AndroidJpsBundle.java:22)
at org.jetbrains.jps.android.AndroidJpsBundle.message(AndroidJpsBundle.java:32)
at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.runAidlCompiler(AndroidSourceGeneratingBuilder.java:688)
at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.doBuild(AndroidSourceGeneratingBuilder.java:198)
at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.build(AndroidSourceGeneratingBuilder.java:114)
at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1263)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:940)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1012)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:903)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:736)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:384)
at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:192)
at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:295)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:236)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

我会在cocos2d-x 3.3上打包安卓程序(使用命令提示符),不知道到3.17.1有多少改进,貌似命令提示符与Elicpse打包到安卓都已经被弃用了

求最新版引擎打包到安卓的详细步骤以及需要安装的东西

可以在cocos官网看到AS的打包方法
https://docs.cocos.com/cocos2d-x/manual/zh/installation/Android-Studio.html

写的不详细,应该出了安装Android Studio还要装很多其他的吧,交叉编译感觉难度要稍微大一点儿,也要稍微麻烦一点儿,我弄了好多次了,都没弄成,哪儿有没有详细的步骤。

3.17.1 可以用CMake或者NDK编,默认是CMake,我改成NDK了,需要安装ninja,AS 3.0+,gralde用默认的不要改。win32需要解决一下目录太长的问题,可以放在根目录或者安装个钩子程序,自己百度。
现在没有交叉编译步骤了,全部是AS完成,就是c++和java的放在一起打包直接出APK了

老铁,还在吗?我上次整好了,这几天重装系统,东西又重新下了一遍儿,都是最新的,但打不成包了。
[== “CMake Server” ==[

{“cookie”:"",“errorMessage”:“Configuration failed.”,“inReplyTo”:“configure”,“type”:“error”}

]== “CMake Server” ==]

Configuration failed.
External native generate JSON debug: JSON generation completed with problems

:HelloWorld:generateJsonModelDebug (Thread[Task worker for ‘:’ Thread 2,5,main]) completed. Took 0.568 secs.

Task :libcocos2dx:platformAttrExtractor
Task ‘:libcocos2dx:platformAttrExtractor’ is not up-to-date because:
No history is available.

:libcocos2dx:platformAttrExtractor (Thread[Task worker for ‘:’,5,main]) completed. Took 0.625 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:HelloWorld:generateJsonModelDebug’.

com.android.ide.common.process.ProcessException: Error configuring

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to
    get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 14s
21 actionable tasks: 21 executed
执行命令出错,返回值:1。
PS D:\temp\project\01Tests\HelloWorld>

老铁,看楼上

用as自己的sdk manager 下的cmake的版本换成3.6的,好像就不需要ninja

下载好了之后,需要换一下CMake版本吗?

如果不换的话,这样操作

https://forum.cocos.com/t/android-studio-cmake-ninja/77324