Closed NikhilMasurkar closed 1 year ago
{ "name": "Fin1", "version": "0.0.1", "private": true, "scripts": { "android:dev": "ENVFILE=./env/.env.dev npx react-native run-android --variant=devDebug --appIdSuffix=dev", "android:prod": "ENVFILE=./env/.env.prod npx react-native run-android --variant=prodDebug", "android:prodBundle": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew bundleProdRelease", "android:prodApk": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew assembleProdRelease", "android:devRelease": "cd android && ENVFILE=./env/.env.dev ./gradlew clean && ./gradlew assembleDevRelease", "ios:dev": "ENVFILE=./env/.env.dev react-native run-ios --scheme \"Fin1Dev\" --configuration \"Dev.Debug\"", "codepush:androidDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn -d Dev -m -t 2.1.2", "codepush:iosDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn-1 -d Dev -m -t 2.1.2", "codepush:iosProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn-1 -d Production -m -t 2.1.2", "codepush:androidProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn -d Production -m -t 2.1.2", "start": "react-native start", "test": "jest", "lint": "eslint .", "repo:cleanup": "rm -rf node_modules & rm -rf yarn.lock & yarn install & cd ios & rm -rf Podfile.lock & pod install & cd ..", "android:winDev": "set \"ENVFILE=./env/.env.dev\" && npx react-native run-android --variant=devDebug --appIdSuffix=dev" }, "dependencies": { "@invertase/react-native-apple-authentication": "^2.2.2", "@native-html/table-plugin": "^5.3.1", "@react-native-async-storage/async-storage": "^1.11.11", "@react-native-community/datetimepicker": "^6.7.5", "@react-native-community/netinfo": "^9.3.7", "@react-native-firebase/analytics": "^17.3.0", "@react-native-firebase/app": "^17.3.0", "@react-native-firebase/crashlytics": "^17.3.0", "@react-native-firebase/dynamic-links": "^17.3.0", "@react-native-firebase/messaging": "^17.3.0", "@react-native-firebase/perf": "^17.3.0", "@react-native-google-signin/google-signin": "^9.0.2", "@react-native-masked-view/masked-view": "^0.2.8", "@react-navigation/drawer": "^6.6.0", "@react-navigation/native": "^6.1.4", "@react-navigation/stack": "^6.3.14", "axios": "^1.3.3", "lottie-ios": "^4.1.3", "lottie-react-native": "^5.1.5", "metro": "^0.75.1", "react": "18.2.0", "react-native": "0.71.3", "react-native-animatable": "^1.3.3", "react-native-calendars": "^1.1293.0", "react-native-canvas": "^0.1.38", "react-native-circular-progress": "^1.3.8", "react-native-code-push": "^7.1.0", "react-native-config": "^1.5.0", "react-native-deck-swiper": "^2.0.13", "react-native-device-info": "^10.4.0", "react-native-document-picker": "^8.1.3", "react-native-email-link": "^1.14.3", "react-native-exception-handler": "^2.10.10", "react-native-fbsdk-next": "^11.1.0", "react-native-file-viewer": "^2.1.5", "react-native-flash-message": "^0.4.0", "react-native-freshchat-sdk": "^4.2.1", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "^2.9.0", "react-native-gifted-charts": "^1.2.42", "react-native-hyperlink": "^0.0.22", "react-native-image-crop-picker": "^0.39.0", "react-native-image-zoom-viewer": "^3.0.1", "react-native-in-app-review": "^4.2.1", "react-native-linear-gradient": "^2.6.2", "react-native-material-ripple": "^0.9.1", "react-native-modal": "^13.0.1", "react-native-modal-datetime-picker": "^14.0.1", "react-native-multicolor-progress-bar": "^2.0.0", "react-native-offline": "^6.0.2", "react-native-orientation": "^3.1.3", "react-native-paper": "^5.2.0", "react-native-pg-react-native-sdk": "^2.1.6", "react-native-progress": "^5.0.0", "react-native-razorpay": "^2.3.0", "react-native-reanimated": "^2.14.4", "react-native-render-html": "^6.3.4", "react-native-restart": "^0.0.27", "react-native-safe-area-context": "^4.5.0", "react-native-screens": "^3.20.0", "react-native-share": "^8.2.0", "react-native-shimmer-placeholder": "^2.0.9", "react-native-slider": "^0.11.0", "react-native-sms-retriever": "^1.1.1", "react-native-splash-screen": "^3.3.0", "react-native-svg": "^13.8.0", "react-native-swipe-gestures": "^1.0.5", "react-native-swipeable-rating": "^0.2.1", "react-native-swiper-flatlist": "^3.0.18", "react-native-vector-icons": "^9.2.0", "react-native-video": "file:../Resources/vdocipher_iOS/react-native-video-fix-fairplay", "react-native-video-vdo": "file:../Resources/vdocipher_iOS/react-native-video-vdo-master", "react-native-webview": "^11.26.1", "react-native-youtube-iframe": "^2.2.2", "react-navigation-backhandler": "^2.0.1", "react-redux": "^8.0.5", "recyclerlistview": "^4.2.0", "redux": "^4.2.1", "redux-persist": "^6.0.0", "redux-thunk": "^2.4.2", "vdocipher-rn-bridge": "^1.12.2" }, "devDependencies": { "@babel/core": "^7.20.12", "@babel/runtime": "^7.20.13", "@react-native-community/eslint-config": "^3.2.0", "babel-jest": "^29.4.3", "eslint": "^8.34.0", "jest": "^29.4.3", "metro-react-native-babel-preset": "^0.75.0", "react-test-renderer": "18.2.0", "redux-logger": "^3.0.6" }, "jest": { "preset": "react-native" } }
my android/build.gradle file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "31.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
googlePlayServicesAuthVersion = "16.0.1"
firebaseIidVersion = "18.0.0"
kotlin_version = '1.6.10' // <- add this line
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath 'com.google.gms:google-services:4.3.14'
classpath'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" // <- add this line
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
maven { url 'https://maven.google.com' }
maven {
url "https://github.com/VdoCipher/maven-repo/raw/master/repo"
}
}
}
My android/build.gradle file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { ext { buildToolsVersion = "31.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
googlePlayServicesAuthVersion = "16.0.1"
firebaseIidVersion = "18.0.0"
kotlin_version = '1.6.10' // <- add this line
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath 'com.google.gms:google-services:4.3.14'
classpath'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10" // <- add this line
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
maven { url 'https://maven.google.com' }
maven {
url "https://github.com/VdoCipher/maven-repo/raw/master/repo"
}
}
}
You can delete the entire C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\
folder because these fonts are now coming pre-bundled with this dependency.
thank you so much this issue is resolved
You can delete the entire
C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\
folder because these fonts are now coming pre-bundled with this dependency.
Thank you !!! works like magic
OS window React native updates from 0.64.2 to 0.72.1 I'm faming problem when i update my react native project
`### New Version
0.71.3
Old Version
0.64.2
Build Target(s)
:app:mergeDevDebugAssets FAILED due to error Duplicate Resources
Output of
react-native info
okay so in dev dependency I have a package called "metro-react-native-babel-preset" but from the package, metro was missing, so I add the latest version of the metro now and it works, but I got a new error same while the time of building the app
Task :app:mergeDevDebugAssets FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 181 actionable tasks: 168 executed, 13 up-to-date ERROR:[fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\AntDesign.ttf [fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\AntDesign.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Entypo.ttf [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Entypo.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\EvilIcons.ttf [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\EvilIcons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Feather.ttf [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Feather.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome.ttf [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Brands.ttf [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Brands.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Regular.ttf [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Regular.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Solid.ttf [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Solid.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Fontisto.ttf [fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Fontisto.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Foundation.ttf [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Foundation.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Ionicons.ttf [fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Ionicons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialCommunityIcons.ttf [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialCommunityIcons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialIcons.ttf [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialIcons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Octicons.ttf [fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Octicons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\SimpleLineIcons.ttf [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\SimpleLineIcons.ttf: Resource and asset merger: Duplicate resources ERROR:[fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Zocial.ttf [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Zocial.ttf: Resource and asset merger: Duplicate resources
FAILURE: Build completed with 2 failures.
1: Task failed with an exception. What went wrong: Execution failed for task ':app:mergeDevDebugAssets'. [fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\AntDesign.ttf [fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\AntDesign.ttf: Error: Duplicate resources [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Entypo.ttf [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Entypo.ttf: Error: Duplicate resources [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\EvilIcons.ttf [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\EvilIcons.ttf: Error: Duplicate resources [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Feather.ttf [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Feather.ttf: Error: Duplicate resources [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome.ttf [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome.ttf: Error: Duplicate resources [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Brands.ttf [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Brands.ttf: Error: Duplicate resources [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Regular.ttf [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Regular.ttf: Error: Duplicate resources [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Solid.ttf [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Solid.ttf: Error: Duplicate resources [fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Fontisto.tt[fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Fontisto.ttf: Error: Duplicate resources [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Foundation.ttf [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Foundation.ttf: Error: Duplicate resources [fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Ionicons.tt[fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Ionicons.ttf: Error: Duplicate resources [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialCommunityIcons.ttf [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialCommunityIcons.ttf: Error: Duplicate resources [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialIcons.ttf [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialIcons.ttf: Error: Duplicate resources [fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Octicons.tt[fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Octicons.ttf: Error: Duplicate resources [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\SimpleLineIcons.ttf [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\SimpleLineIcons.ttf: Error: Duplicate resources [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Zocial.ttf [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Zocial.ttf: Error: Duplicate resources
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
2: Task failed with an exception. What went wrong: java.lang.StackOverflowError (no error message)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org/ BUILD FAILED in 42s
Issue and Reproduction Steps
I didn't find the solution to this error while I Updating react native from 0.64.2 to 0.72.1 .`