Hata metni
App opens to a blank white or black screen; logcat: Unable to load script. Make sure you're either running Metro or that your bundle 'index.android.bundle' is packaged correctly for release.
App opens to a blank white or black screen; logcat: Unable to load script. Make sure you're either running Metro or that your bundle 'index.android.bundle' is packaged correctly for release.
Uygulama açılır ama ekran boş kalır. JS bundle pakete girmemiş ya da ilk render'da JS hatası olmuş.
adb logcat içinde Unable to load script ya da JS hatasını ara.assets/index.android.bundle yolunda olduğunu kontrol et../gradlew clean assembleRelease çalıştır.try/catch ve ErrorBoundary ile sar.http ise network security config sayfasına bak.adb logcat *:E | grep -i -E "react|bundle|script" npx 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 cd android && ./gradlew clean assembleRelease
Her release'ten önce APK'yı hiçbir debug aracı olmadan telefona kur ve aç.
Yazar ve lisans: Nibras Code