nitish24p / react-native-upi

A tiny module for Adding payments via UPI in your react native apps ❤️
MIT License
77 stars 30 forks source link

update compileSdkVersion+buildToolsVersion #19

Open dsaha1656 opened 4 years ago

dsaha1656 commented 4 years ago

Old CompileSdk and BulidTool lead to error

> Task :react-native-upi-payment:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-upi-payment:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
nitish24p commented 4 years ago

Can you attach the entire failure logs please

nitish24p commented 4 years ago
./gradlew installDebug --info
dsaha1656 commented 4 years ago

The problem occurred when i tried to make release of my app. In case of

./gradlew installDebug

no error has occurred cause the build tool version was inherit from the main build.gradle

but in case of

./gradlew assembleRelease

the error occurred in task

> Task :react-native-upi-payment:verifyReleaseResources FAILED

here is the log.txt

dsaha1656 commented 4 years ago

any update on this?

nitish24p commented 4 years ago

Sorry don't get much time to check this.. wanted to just verify something can you send your android’s build.gradle

dsaha1656 commented 4 years ago

Here it is. ./android/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "29.0.2"
        minSdkVersion = 16
        compileSdkVersion = 29
        targetSdkVersion = 29
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    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' }
    }
}
dsaha1656 commented 3 years ago

any update on this? @nitish24p

Harsh-uvtechsoft commented 1 year ago

Same Issue Please share a Solution if found