Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打包安卓后 报错: 找不到 bootstrap.js #9

Open
CoderMzx opened this issue Dec 25, 2021 · 3 comments
Open

打包安卓后 报错: 找不到 bootstrap.js #9

CoderMzx opened this issue Dec 25, 2021 · 3 comments

Comments

@CoderMzx
Copy link

I/Unity: CoderM StartJavaScriptError System.Exception: /data/app/~~a_LmcoG1SbiPc-OU2nWQAg==/com.Mhxy.CMMhxy-tZgQFXKSQ5N6Mq0xRvXWUg==/base.apk/csharp/Libraries/Puerts/Src/Resources/puerts/modular.js.txt:67: Error: can not find bootstrap.js

Error: can not find bootstrap.js
    at require (/data/app/~~a_LmcoG1SbiPc-OU2nWQAg==/com.Mhxy.CMMhxy-tZgQFXKSQ5N6Mq0xRvXWUg==/base.apk/csharp/Libraries/Puerts/Src/Resources/puerts/modular.js.txt:67:27)
    at D:/CMMhxy/CmUnity_Ts/Assets/StreamingAssets/scripts/bootstrap.js:1:1
  at Puerts.JsEnv.Eval[TResult] (System.String chunk, System.String chunkName) [0x00000] in <00000000000000000000000000000000>:0 
  at tiny.JavaScriptLauncher+<StartJavaScript>d__21.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 
  at tiny.JavaScriptLauncher.StartJavaScript () [0x00000] in <00000000000000000000000000000000>:0 
  at
@CoderMzx
Copy link
Author

看样子安卓上是没有这个目录,代码层寻找路径为调试目录了,直接发布安卓包不行

@CoderMzx
Copy link
Author

P主可以私信一个联系方式么,对这个框架还是很感兴趣的,希望共同交流一下

@Geequlim
Copy link
Owner

Android 的实现涉及我们内部的代码热更和加密策略不适合开源,需要你自己实现 IScriptLoader 接口,然后添加你的实现到JavaScriptLoader.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants