Avatar
0
tvd12 Enlightened
tvd12 Enlightened
React native debug UI trên android simulator
Hi anh em, mình đang muốn enable debug ui trên android simulator nhưng gặp lỗi này:<div class="markdown-block position-relative overflow-auto"> <pre> Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4 <span class="pl-k">from</span> /Users/xxx/Documents/projects/xxx/packages/mobile/.: <span class="pl-k">None</span> of these files exist: * debugger-ui/debuggerWorker.aca173c4(.native|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx|.native.svg|.svg) * debugger-ui/debuggerWorker.aca173c4/index(.native|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx|.native.svg|.svg) at ModuleResolver.resolveDependency (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:114:15) at DependencyGraph.resolveDependency (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/node-haste/DependencyGraph.js:277:43) at /Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/lib/transformHelpers.js:169:21 at Server._resolveRelativePath (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:1045:12) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at <span class="pl-k">async</span> Server._explodedSourceMapForBundleOptions (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:993:35) at <span class="pl-k">async</span> Promise.all (index 1) at <span class="pl-k">async</span> Server._symbolicate (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:945:26) at <span class="pl-k">async</span> Server._processRequest (/Users/xxx/Documents/projects/xxx/packages/mobile/node_modules/metro/src/Server.js:418:7) </pre> </div><p> Anh em có cách nào khác phục không? Mình search google mà không thấy. </p> <p> Phiên bản: </p> <div class="markdown-block position-relative overflow-auto"> <pre> <span class="pl-s">"react-native"</span>: <span class="pl-s">"0.72.4"</span> <span class="pl-s">"@react-native-community/cli-debugger-ui@11.3.6"</span> </pre> </div>
Answer
Avatar
0
tvd12 Enlightened
tvd12 Enlightened
React Native: Fix lỗi Failed to transform react-android-0.72.3-debug.aar
<div class="markdown-block position-relative overflow-auto"> <pre> Execution failed <span class="pl-k">for</span> task <span class="pl-s">':app:checkDebugAarMetadata'</span>. &gt; Could <span class="pl-k">not</span> resolve <span class="pl-k">all</span> files <span class="pl-k">for</span> configuration <span class="pl-s">':app:debugRuntimeClasspath'</span>. &gt; Failed to transform react-android-0.72.3-debug.aar (com.facebook.react:react-android:0.72.3) to <span class="pl-k">match</span> attributes {artifactType=android-aar-metadata, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. &gt; Execution failed <span class="pl-k">for</span> JetifyTransform: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-android/0.72.3/753dcb10579a06570819a980133bb5042d82a6a5/react-android-0.72.3-debug.aar. &gt; Java heap space &gt; Failed to transform hermes-android-0.72.3-debug.aar (com.facebook.react:hermes-android:0.72.3) to <span class="pl-k">match</span> attributes {artifactType=android-aar-metadata, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}. &gt; Execution failed <span class="pl-k">for</span> JetifyTransform: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.facebook.react/hermes-android/0.72.3/f89c2cda86da7a97ffd78484839d880f8eccd3c9/hermes-android-0.72.3-debug.aar. &gt; Java heap space </pre> </div>
Answer