Android build fails while building in cloud using Build Native Mobile App from Studio Pro

1
Hi,   After Android SDK 33 update, all my android builds are failing. We are using Build Native App v1.0.128 Native template 7.0.5 below are my Github dependency files {   "@react-native-community/netinfo": "5.9.7",     "react-native-webview": "11.17.1",     "react-native-view-shot": "3.1.2",     "react-native-background-upload": "6.6.0",     "react-native-fs": "2.20.0",     "react-native-get-random-values": "1.9.0" }   Log says react-native-webview is deprecated. I did update the version in dependency file to 13.6.0 in Git and committed the  changes. But every time I try another build it gets reverted to old version 11.17.1 and then in log I get deprecated errors.   I think, the process I am following to update the node dependencies is not the correct approach.   ref, gradle file,   buildscript {     ext {        buildToolsVersion = "33.0.0"         minSdkVersion = 21         compileSdkVersion = 33         targetSdkVersion = 33         kotlin_version = "1.7.21"         excludeAppGlideModule = true         androidx_lifecycle_version = "2.3.1"         playServicesVersion = "18+"         firebaseMessagingVersion = "21.0.0"         androidXCore = "1.6.0"         androidXBrowser = "1.2.0"     }     repositories {         google()         mavenCentral()         maven {             url "https://maven.fabric.io/public"         }         maven {             url "https://packages.rnd.mendix.com/jcenter"         }     }     dependencies {         classpath "com.android.tools.build:gradle:7.2.1"         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"         apply from: file("../node_modules/@mendix/native/android/mendix.gradle"); applyMendixClassPaths(project)         // NOTE: Do not place your application dependencies here; they belong         // in the individual module build.gradle files     } } allprojects {     repositories {         all { repo ->             println repo.url.toString()             if (repo.url.toString().contains("jcenter.bintray.com") || repo.url.toString().contains("jitpack.io")) {                 project.logger.warn "Repository ${repo.url} removed."                 remove repo                 google()                 mavenCentral()             }         }         exclusiveContent {             filter {                 includeGroup "com.facebook.react"             }             forRepository {                 maven {                     url "$rootDir/../node_modules/react-native/android"                 }             }         }         maven {             url "$rootDir/../node_modules/react-native/android"         }         maven {             url "$rootDir/../node_modules/jsc-android/dist"         }         maven {             url "$rootDir/../node_modules/detox/Detox-android"         }         google()         mavenCentral {             content {                 excludeGroup("com.facebook.react")             }         }         maven {             url "https://maven.fabric.io/public"         }         maven { url "https://packages.rnd.mendix.com/jcenter" }         maven { url "https://www.jitpack.io" }         maven {             url "https://maven.scijava.org/content/repositories/public/"         }         maven {             url "https://maven.scijava.org/content/repositories/jitpack/"         }         maven {             url "https://maven.scijava.org/content/repositories/jcenter/"         }     } }   Any help or suggestion in resolving this issue from the community would really be appreciated.   Thanks!
asked
1 answers
0

Have you found any solution to this? I am facing the same problem and support told me to do the following:

 

“Could you upgrade react-native-webview to 11.26.1? One of our customer was facing the same issue upgrading to latest react-native-webview versions resolved the issue for them. Files should be upgraded in the project directory within specific package.json files which have a reference to react-native-webview.”

This however hasn't solved the problem for me.

answered