apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

[Android][weex 0.28]errorCode:-1001, msg:degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1 #3318

Open flyinmind opened 3 years ago

flyinmind commented 3 years ago

When running an example with weex 0.28. It reports "errorCode:-1001, msg:degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1"

1) I tried to copy libJavaScriptCore.so from weex_playgroud_10006024 to sdk-0.28.0.aar. It seems not work.

2)And I also tried to change build.gradle, add the following line: apply from: 'https://www.mobibrw.com/wp-content/uploads/2019/11/download_jsc.gradle' Reports "Unexpected end of ZLIB input stream" when compiling. Copy jsc-android-241213.1.0.tgz to jsc directory. Compiling passed. But when running, the same error appeared.

I want to know: Is there a way to run weex with v8 in android? In my project, there is a j2v8.aar. Thanks!

flyinmind commented 3 years ago

I found a way to solve the problem! 1)Down load js from https://registry.npmjs.org/jsc-android/-/jsc-android-241213.1.0.tgz. 2)Copy libjsc.so in it to sdk-0.28.0.aar Then OK! It is not a good way.