Android 升级到react native 0.59.3后无法生成已签名的apk
最近已升级为反应本机v0.59.3 我使用的是react native google places和react native maps软件包的最新版本 当我尝试react native run android时,我得到CompiledBugResources renderscript错误,为此我在依赖项的节点模块buid.gradle上做了一些修改,以修复该问题 现在我无法生成签名的apk,因为我得到了错误 未能捕获任务“”的输入文件指纹:应用程序:bundleReleaseJsAndAssets“属性”$1 为此,我必须删除节点模块并重新安装,从而导致 CompiledBugRenderScript错误。 有什么建议或解决办法吗 以下是我在node_模块中对googleplaces和GoogleMaps的build.gradle所做的更改 更改节点模块/react native maps/lib/android/build.gradleAndroid 升级到react native 0.59.3后无法生成已签名的apk,android,react-native,gradle,react-native-maps,Android,React Native,Gradle,React Native Maps,最近已升级为反应本机v0.59.3 我使用的是react native google places和react native maps软件包的最新版本 当我尝试react native run android时,我得到CompiledBugResources renderscript错误,为此我在依赖项的节点模块buid.gradle上做了一些修改,以修复该问题 现在我无法生成签名的apk,因为我得到了错误 未能捕获任务“”的输入文件指纹:应用程序:bundleReleaseJsAndAsset
dependencies {
def googlePlayServicesVersion = safeExtGet('googlePlayServicesVersion', DEFAULT_GOOGLE_PLAY_SERVICES_VERSION)
// Variable lookup order : googlePlayServicesMapsVersion > googlePlayServicesVersion > DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION
def googlePlayServicesMapsVersion = safeExtGet('googlePlayServicesMapsVersion', safeExtGet('googlePlayServicesVersion', DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION))
def androidMapsUtilsVersion = safeExtGet('androidMapsUtilsVersion', DEFAULT_ANDROID_MAPS_UTILS_VERSION)
compileOnly "com.facebook.react:react-native:+"
implementation "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
implementation "com.google.android.gms:play-services-maps:$googlePlayServicesMapsVersion"
implementation "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
}
In google places node modules build.gradle
Add
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
And
android {
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}