gpt4 book ai didi

android - Undefined 不是一个对象(评估 'Sn[e]' )

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:41:38 25 4
gpt4 key购买 nike

我在 Android 上遇到这个错误:

enter image description here

我在“index.android.bundle”中找到了代码行 'Sn[e]',我已将其粘贴在下方 (ctrl/command + F):

for (var An in Sn) xn[An] = Sn[An];
for (var Dn in wn) Pt(!Sn[Dn], "Event cannot be both direct and bubbling: %s", Dn), xn[Dn] = wn[Dn];
var kn = {
eventTypes: En({}, Sn, wn),
extractEvents: function(e, t, n, o) {
var r = Sn[e],
i = wn[e],
a = Pn.getPooled(r || i, t, n, o);
if (r) fn.accumulateTwoPhaseDispatches(a);
else {
if (!i) return null;
fn.accumulateDirectDispatches(a)
}
return a
}
},
jn = kn,
On = {
handleTopLevel: function(e, t, n, o) {
G(sn.extractEvents(e, t, n, o))
}
},
Mn = On,
Hn = 1,
Un = {
tagsStartAt: Hn,
tagCount: Hn,
allocateTag: function() {
for (; this.reactTagIsNativeTopRootID(Un.tagCount);) Un.tagCount++;
var e = Un.tagCount;
return Un.tagCount++, e
},
assertRootTag: function(e) {
It(this.reactTagIsNativeTopRootID(e), "Expect a native root tag, instead got %s", e)
},
reactTagIsNativeTopRootID: function(e) {
return e % 10 == 1
}
},
Fn = Un,
Wn = null,
Ln = {
injectFiberControlledHostComponent: function(e) {
Wn = e
}
},
Bn = null,
Yn = null,
Vn = {
injection: Ln,
enqueueStateRestore: function(e) {
Bn ? Yn ? Yn.push(e) : Yn = [e] : Bn = e
},

看起来像一段 React 代码,因为它有 injectFiberControlledHostComponent,这看起来像 React Native Fiber。知道如何解决这个问题吗?

我在 android studio 中启动了该应用程序并且没有出现任何错误,因为该应用程序可以正常构建和安装。我确实在 android studio gradle 控制台中看到了这一点,但这可能不是问题所在:

Note: /Users/Ben/Development/Projects/vepo/frontend/android/app/src/main/java/com/vepo/MainApplication.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

最佳答案

我遇到了同样的问题,并通过将 app/build.gradle 更改为:

编译“com.facebook.react:react-native:+”

编译(“com.facebook.react:react-native:+”){
力=真;
}

另见:https://github.com/facebook/react-native/issues/17840

关于android - Undefined 不是一个对象(评估 'Sn[e]' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48910717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com