问题
我已经在Play Store上发布了最新版本的应用程序。
构建的?
日志
下面是logcat在运行从Android模拟器中的Play Store下载的应用程序时的日志。在执行停止的最后有几个错误。当错误无法在任何预定位置中找到本机依赖项时,就会显示该错误。
即使在运行APK时,我也会获得相同的日志,但执行仍在继续,并完成启动应用程序并从服务器获取数据。
> 2020-08-17 22:39:02.997 4719-4719/? D/SoLoader: libyoga.so not found on /data/data/com.abc.testapp/lib-main
> 2020-08-17 22:39:02.997 4719-4719/? D/SoLoader: libyoga.so not found on /data/data/com.abc.testapp/lib-0
> 2020-08-17 22:39:02.997 4719-4719/? D/SoLoader: libyoga.so found on /data/data/com.abc.testapp/lib-1
> 2020-08-17 22:39:03.002 4719-4719/? D/SoLoader: libjsinspector.so not found on /data/data/com.abc.testapp/lib-main
> 2020-08-17 22:39:03.002 4719-4719/? D/SoLoader: libjsinspector.so not found on /data/data/com.abc.testapp/lib-0
> 2020-08-17 22:39:03.002 4719-4719/? D/SoLoader: libjsinspector.so found on /data/data/com.abc.testapp/lib-1
> 2020-08-17 22:39:03.003 4719-4719/? D/SoLoader: libfolly_json.so not found on /data/data/com.abc.testapp/lib-main
> 2020-08-17 22:39:03.003 4719-4719/? D/SoLoader: libfolly_json.so not found on /data/data/com.abc.testapp/lib-0
> 2020-08-17 22:39:03.003 4719-4719/? D/SoLoader: libfolly_json.so found on /data/data/com.abc.testapp/lib-1
> 2020-08-17 22:39:03.011 4719-4719/? D/SoLoader: libjsc.so not found on /data/data/com.abc.testapp/lib-main
> 2020-08-17 22:39:03.011 4719-4719/? D/SoLoader: libjsc.so not found on /data/data/com.abc.testapp/lib-0
> 2020-08-17 22:39:03.011 4719-4719/? D/SoLoader: libjsc.so not found on /data/data/com.abc.testapp/lib-1
> 2020-08-17 22:39:03.011 4719-4719/? D/SoLoader: libjsc.so not found on /data/data/com.abc.testapp/lib-2
> 2020-08-17 22:39:03.011 4719-4719/? D/SoLoader: libjsc.so not found on /data/app/com.abc.testapp-ue_qPUdXT8TbbZBF3aKjsA==/lib/x86
> 2020-08-17 22:39:02.977 4719-4719/? W/abc.testapp: type=1400 audit(0.0:559): avc: granted { execute } for path="/data/data/com.abc.testapp/lib-1/libfb.so" dev="vdc" ino=147513 scontext=u:r:untrusted_app_27:s0:c146,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c146,c256,c512,c768 tclass=file
> 2020-08-17 22:39:02.977 4719-4719/? W/abc.testapp: type=1400 audit(0.0:560): avc: granted { execute } for path="/data/data/com.abc.testapp/lib-1/libglog.so" dev="vdc" ino=147516 scontext=u:r:untrusted_app_27:s0:c146,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c146,c256,c512,c768 tclass=file
> 2020-08-17 22:39:02.977 4719-4719/? W/abc.testapp: type=1400 audit(0.0:561): avc: granted { execute } for path="/data/data/com.abc.testapp/lib-1/libglog_init.so" dev="vdc" ino=147518 scontext=u:r:untrusted_app_27:s0:c146,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c146,c256,c512,c768 tclass=file
> 2020-08-17 22:39:03.381 1814-1814/? E/Layer: [Surface(name=AppWindowToken{ab7a8d4 token=Token{81bde27 ActivityRecord{9318e6 u0 com.abc.testapp/.MainActivity t205}}})/@0x356d6b1 - animation-leash#0] No local sync point found
> 2020-08-17 22:39:03.381 1814-1814/? E/Layer: [Surface(name=AppWindowToken{ab7a8d4 token=Token{81bde27 ActivityRecord{9318e6 u0 com.abc.testapp/.MainActivity t205}}})/@0x356d6b1 - animation-leash#0] No local sync point found我查过的东西:
- I've tried following this answer [https://stackoverflow.com/a/56778060/12246335](https://stackoverflow.com/a/56778060/12246335) but it started producing APK with sizes twice as before and app kept crashing.- This answer [https://stackoverflow.com/a/59626013/12246335](https://stackoverflow.com/a/59626013/12246335) suggests enabling cleartext traffic. I went through the docs but couldn't see how this would be useful, also it mentioned security issues upon adding this option.- The configuration in AndroidManifest.xml shows that currently the cleartext traffic is enabled for debug mode and not for release mode.- I have tried updating gradle and plugin versions to the latest releases. The APK builds and runs fine but the error above is still there in the logcat. So, I feel that the Play Store release with this will be no different and will stop execution with the above errors.如有任何帮助/建议,我们将不胜感激。谢谢。
发布于 2020-08-20 19:31:25
我找到解决办法了。
原来问题是赫姆斯被启用了。
https://github.com/facebook/react-native/issues/26400#issuecomment-539395814
上面的答案帮我解决了问题。
https://stackoverflow.com/questions/63467980
复制相似问题