在应用启动时反应本机发行签名APK崩溃

时间:2019-05-26 04:32:59

标签: android react-native android-signing

我对本机发行版APK遇到问题。

该应用在调试模式下运行,但在发布模式下立即崩溃

某些电话将被安装,但是当我运行它时,它将立即崩溃,而其他电话将不会被安装这是我的应用程序,看起来像这样... enter image description here

这是我的软件包依赖项列表

return reverse('postdetail', kwargs={'slug': self.slug})

我的android / build.gradle文件是-

"dependencies": {
    "axios": "^0.18.0",
    "jwt-decode": "^2.2.0",
    "native-base": "^2.12.1",
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-awesome-alerts": "^1.2.0",
    "react-native-elements": "^1.1.0",
    "react-native-gesture-handler": "^1.2.1",
    "react-native-maps": "^0.24.2",
    "react-native-otp-inputs": "^3.0.2",
    "react-native-swiper": "^1.5.14",
    "react-native-vector-icons": "^6.4.2",
    "react-navigation": "^3.9.2",
    "react-redux": "^5.0.7",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0"
},

我的android studio日志猫崩溃...。 enter image description here

2 个答案:

答案 0 :(得分:0)

根据您的崩溃日志以及应用在调试中运行的事实,很可能您有捆绑问题。再次运行此命令以创建新的新捆绑包

    <?xml version='1.0' encoding='UTF-8'?>
    <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2-hudson-740-. -->
    <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2-hudson-740-. -->
    <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
    xmlns:wsp="http://www.w3.org/ns/ws-policy" 
    xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" 
    xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:tns="http://wsdlminsal/" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns="http://schemas.xmlsoap.org/wsdl/" 
    targetNamespace="http://wsdlminsal/" name="wsminsal">
        <types>
            <xsd:schema>
                <xsd:import namespace="http://wsdlminsal/" schemaLocation="http://localhost:8084/MinsalService/wsminsal?xsd=1" />
            </xsd:schema>
        </types>
        <message name="checkin">
            <part name="parameters" element="tns:checkin" />
        </message>
        <message name="checkinResponse">
            <part name="parameters" element="tns:checkinResponse" />
        </message>
        <portType name="wsminsal">
            <operation name="checkin">
                <input wsam:Action="http://wsdlminsal/wsminsal/checkinRequest" message="tns:checkin" />
                <output wsam:Action="http://wsdlminsal/wsminsal/checkinResponse" message="tns:checkinResponse" />
            </operation>
        </portType>
        <binding name="wsminsalPortBinding" type="tns:wsminsal">
            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
            <operation name="checkin">
                <soap:operation soapAction="" />
                <input>
                    <soap:body use="literal" />
                </input>
                <output>
                    <soap:body use="literal" />
                </output>
            </operation>
        </binding>
        <service name="wsminsal">
            <port name="wsminsalPort" binding="tns:wsminsalPortBinding">
                <soap:address location="http://localhost:8084/MinsalService/wsminsal" />
            </port>
        </service>
    </definitions>

react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

如果没有index.android.js,请创建一个新版本

答案 1 :(得分:0)

我有同样的错误,将react-native更改为0.59.3

运行

  

添加纱线react-native@0.59.3

  

npm i-保存react-native@0.59.3

我还删除了 android / app / build node_modules / (创建新版本)

显然是与版本0.59.8相关的错误