当前位置:网站首页>LnReader编译

LnReader编译

2022-08-09 12:21:00 Leibniz infinity sml

解决错误: ReanimatedUIImplementation.java:13: 错误: 找不到符号 ViewManagerResolver viewManagerResolver,

解决参考

package com.facebook.react.uimanager;

import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.events.EventDispatcher;
import com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager;
import java.util.List;

public class ReanimatedUIImplementation extends UIImplementation {
    
  public ReanimatedUIImplementation(
      ReactApplicationContext reactContext,
      UIManagerModule.ViewManagerResolver viewManagerResolver,//第13行, "UIManagerModule." 是新增的
      //...

nodejs 17报错 , 降到nodejs 16

F:\lnreader>  yarn run buildRelease
"""
Failed to construct transformer:  Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at stableHash (F:\lnreader\node_modules\metro-cache\src\stableHash.js:19:8)
    at Object.getCacheKey (F:\lnreader\node_modules\metro-transform-worker\src\index.js:647:7)
    at getTransformCacheKey (F:\lnreader\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:32:19)
    at new Transformer (F:\lnreader\node_modules\metro\src\DeltaBundler\Transformer.js:180:28)
    at F:\lnreader\node_modules\metro\src\Bundler.js:58:29 {
    
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
"""

nvm current
#v17.9.1

nvm use 16.16.0

…卡在app:bundleReleaseJsAndAssets
参考?

npm install -g react-native-cli
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

原网站

版权声明
本文为[Leibniz infinity sml]所创,转载请带上原文链接,感谢
https://blog.csdn.net/hfcaoguilin/article/details/126231364