react-native 问题1

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)