Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update compileSdkVersion+buildToolsVersion #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsaha1656
Copy link

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

update buildToolsVersion
@nitish24p
Copy link
Owner

Can you attach the entire failure logs please

@nitish24p
Copy link
Owner

./gradlew installDebug --info

@dsaha1656
Copy link
Author

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
Copy link
Author

any update on this?

@nitish24p
Copy link
Owner

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

@dsaha1656
Copy link
Author

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
Copy link
Author

any update on this? @nitish24p

@Harsh-uvtechsoft
Copy link

Same Issue Please share a Solution if found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants