You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone still using this to debug font-related issues, replace the existing android/build.gradle with to get builds to pass in newer react-native versions (I'm on 0.71.8):
// android/build.gradle// based on://// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle// original location:// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle//// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle// original location:// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradledefDEFAULT_COMPILE_SDK_VERSION=28defDEFAULT_BUILD_TOOLS_VERSION='28.0.3'defDEFAULT_MIN_SDK_VERSION=16defDEFAULT_TARGET_SDK_VERSION=28defsafeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
apply plugin: 'com.android.library'buildscript {
// The Android Gradle plugin is only required when opening the android folder stand-alone.// This avoids unnecessary downloads and potential conflicts when the library is included as a// module dependency in an application project.// ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependenciesif (project == rootProject) {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
}
apply plugin: 'com.android.library'android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
google()
mavenCentral()
jcenter()
}
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+'// From node_modules
}
The text was updated successfully, but these errors were encountered:
For anyone still using this to debug font-related issues, replace the existing
android/build.gradle
with to get builds to pass in newer react-native versions (I'm on 0.71.8):The text was updated successfully, but these errors were encountered: