美文网首页
react-native 问题1

react-native 问题1

作者: 肖雨San | 来源:发表于2019-01-01 20:43 被阅读4次

    Q:调试打包的apk(install the signed apk onto your device)

    A:$ react-native run-android --variant=releasewill

    Q:/Users/zhangshuai/meteor/tagt/android/app/src/main/res/values/strings.xml:4: Error: "facebook_app_id" is not translated in "en" (English), "zh" (Chinese) [MissingTranslation]

    A: 添加translatable属性name="facebook_app_id" translatable="false"

    Q:com.android.dex.DexIndexOverflowException

    A:添加com.android.support:multidex

    Q:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded

    A:dexOptions {

    javaMaxHeapSize "4g" //specify the heap size for the dex process

    preDexLibraries false //delete the already predexed libraries

    }

    Q:Plugin with id 'com.github.dcendents.android-maven' not found.

    A:buil.gradle中dependencies中添加

    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

    Q:NDK is missing a "platforms" directory.

    A试着更换android/build.gradle的版本

    Q:Plugin with id 'com.jfrog.bintray' not found.

    A:classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'

    相关文章

      网友评论

          本文标题:react-native 问题1

          本文链接:https://www.haomeiwen.com/subject/hhqrgxtx.html