1. 程式人生 > >react-native 0.46升級0.51報錯:Bundling `index.android.js` [development, non-minified] 0.0% (0/1), failed

react-native 0.46升級0.51報錯:Bundling `index.android.js` [development, non-minified] 0.0% (0/1), failed

如圖:
0.46updateto0.51.png
解決:
1:android /app/build.gradle
新增如下:

project.ext.react = [
        entryFile: "index.js"
]

2:在MainApplication裡面

 @Override
    protected String getJSMainModuleName() {
      return "index";
    }

3:修改index.ios.js&&index.android.ios->index.js
將這兩個檔案合併一個命名index.js.

相關推薦

react-native 0.46升級0.51:Bundling `index.android.js` [development, non-minified] 0.0% (0/1), failed

如圖: 解決: 1:android /app/build.gradle 新增如下: project.ext.react = [ entryFile: "index.js"

React Native 安卓 程序運行React Native version mismatch(轉載)

roi com 想要 情況下 mpi 默認 最新版 問題 face 這個問題已經得到解決,參照stackoverflow上的問題:https://stackoverflow.com/que...這個問題的原因就處在Android工程中app/build.gradle中,bu

React-native 完美解決 Unable to load script from assets “index.android.bundle” 和 JS server not recognize

前言: React-Native的第一個HelloWorld工程,大多數人都能跑起來,可也有一部分人卡在第一個工程,就是難以跑出正確的介面,乾著急… 我這裡給出我遇到的坑,希望能夠幫助你,首先,給出我現在的開發環境版本: 版本宣告: Node.js : v8.9.4 Re

記一次 React Native 大版本升級過程——從0.40到0.59

去年把公司幾個react native 相關的專案升級了下,已經過去一段時間了,這裡系統整理下之前的整個過程。 背景 之前到公司的時候發現公司用的還是0.40的版本,據瞭解,當時專案做的比較早,導航用的是自帶的路由庫,狀態管理用的是 mobx。到公司之前雖然有react native的相關經驗,不過當時官方

appium_v1.4.16版本不適配android7.0系統,運行“Attempt to re-install io.appium.settings without first uninstalling”

urn fail tin ins 找到 auto his ger 問題: 要解決的問題:appium在androidV7.0系統上運行時報錯 Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.a

appium在android 7.0真機上運行command failed shell:............ps:'uiautomator"的解決方式

.proto androi sse ces node return std tomato 並且 appium版本:1_4_16 在CSDN中找到相關解決的方案,根據此解決方案順利的解決了讓人惆悵的問題,再次記錄。 1、找到appium安裝目錄下的adb.js文件,目錄為:A

解決訪問ADFS3.0修改密碼頁面訪問問題

office365 adfs updatepassword ?1.???? ADFS 默認情況下修改密碼終結點是未啟用的,需要手動啟用,如下圖,修改完成後重啟服務器,如果ADFS場中有多臺ADFS服務器時請依次重啟ADFS服務器2.???? 完成設置後,訪問密碼修改頁面時報錯,如下3.???? 解

ve2.0 v-for循環的解決方案

center right || 2.0 blog for -i dex 分鐘 <li v-for="(item,index) in mokeData" class="page" :key="index"> <div class="page-l

vueError in render: "TypeError: Cannot read property '0' of undefined"

通常有兩種情況: 1、在模板的html標籤上使用length報錯 vue 中使用 length判斷的時候,有時會報錯,如下: <div class="item_list" v-if="form.checkVal.length > 0" >列表1</div><div c

轉:彙總Tensorflow1.0執行之前版本程式碼問題

注:在Tensorflow1.0執行之前版本,以及py2與py3檔案編碼遇到很多問題。 這裡轉發了網上的彙總報錯解決方法。 1.TypeError: Expected int32, got list containing Tensors of type ‘_Message’ instead.

SSD pytorch 原始碼demo: ValueError: not enough values to unpack (expected 2, got 0)

https://github.com/amdegroot/ssd.pytorch/issues/154#issuecomment-384856547 將 detection.py 檔案中第49行(行數可以因版本不同而不同): if scores.dim() == 0: c

mybatis:parameter ' ' not fount.Available parameters are [0, 1, param1, param2]

mybatis報錯:parameter ’ ’ not fount.Available parameters are [0, 1, param1, param2] 這種原因就是因為引數沒有對應上。解決方法就是在dao層方法引數加上@param(value=’’"),或者在sql語句中按照順序

android 4 0 以上平臺選擇圖片Attempted to access a cursor after it

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

mongodb使用mongo: Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:270

在windows下命令臺輸入mongo報一下錯誤: D:\ProgramFiles\BianCheng\mongodb-win32-x86_64-2008plus-ssl-4.0.4>mongoMongoDB shell version v4.0.4connecting to: mongodb://1

windows10下的Mysql-8.0.11安裝教程以及的解決方法

一,安裝 點選以下連結可看安裝方法     win10下安裝mysql8.0.11 二,報錯的解決方法 問題1 :windows10系統下,在工作管理員中檢視的MySQL服務,每次開啟服務之後都會自動關閉??? 解決方法:檢視

如何解決Django2.0專案urls名稱空間

報錯資訊: django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set t

AndroidStudio “ Process 'command 'D:\SDK\build-tools\27.0.3\aapt.exe'' finished with non-zero ex”

一個AndroidStudio執行時的錯誤。 “Process 'command 'D:\SDK\build-tools\27.0.3\aapt.exe'' finished with non-zero exit value 1” 在網上都是在說是檢視出現問題了,但是說真的,如果去一個個檢查

mysql8.0建立使用者授予許可權解決方法

從 5.7 升級 8.0 版本的不會改變現有使用者的身份驗證方法,但新使用者會預設使用新的 caching_sha2_password 。客戶端不支援新的加密方式。方法之一,修改使用者的密碼和加密方式ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_nat

搭建Hive遠端模式在初始化Hive的時候Access denied for user 'hiveowner'@'127.0.0.1' (using password: YES)

報錯資訊如下: [[email protected] conf]# schematool -dbType mysql -initSchema SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding

tomcat啟動:Could not publish server configuration for Tomcat v7.0 Server at localhost。

我用的是tomcat7.0.82. tomcat報錯,無法啟動。 **報錯資訊:**Could not publish server configuration for Tomcat v7.0 server at localhost. 和 Server Tomcat v7.0 Ser