Closed jhen0409 closed 1 year ago
A temporary workaround for minimize compile time: ./gradlew extractSOFiles
before build app. I use it in our CI setup.
@jhen0409 could you share the full command and log for your first build?
e.g.
./gradlew clean :app:assmebleDebug
is the command and ./gradlew clean :app:assembleDebug | tee build.log
to generate full build log
If you want to see the build log with --info
, I've put it in here.
Any update on this issue?
@jhen0409 that's a great log, thanks! i cannot repro the problem on my side at all. could you help to patch #151 locally and verify whether the fix works for you?
@Kudo I confirm #151 fixed this issue. Thanks!
@jhen0409 thanks for the great help. published react-native-v8@1.5.3 with the fix 🚀
See the error report
``` FATAL EXCEPTION: create_react_context Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libv8android.so" not found: needed by /data/app/~~i0I1NaaZCLMDKne_2BVLeQ==/com.testapp-f9Qoatevq6ZoTI1QzWzlnw==/lib/arm64/libv8executor.so in namespace classloader-namespace FATAL EXCEPTION: create_react_context Process: com.testapp, PID: 4353 java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libv8executor.so caused by: dlopen failed: library "libv8android.so" not found: needed by /data/app/~~i0I1NaaZCLMDKne_2BVLeQ==/com.testapp-f9Qoatevq6ZoTI1QzWzlnw==/lib/arm64/libv8executor.so in namespace classloader-namespace result: 0 at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1098) at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:914) at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:826) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:773) at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:743) at io.csie.kudo.reactnative.v8.executor.V8Executor.The first build doesn't seem to include the DSO files of react-native-v8, I see that the apk size is incorrect:
./gradlew clean
+ rebuild: apk size is 45.6MBI've create a example project for reproduce the issue, it just an initial project and followed react-native-v8 setup: https://github.com/jhen0409/react-native-v8-issue-on-0.69
My environment is macOS with M1 Max chip.
I got this issue when I try to upgrade from RN 0.68 to 0.69.