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

Execution failed for task ':react-native-braintree-payments-drop-in:verifyReleaseResources'. #6

Open
oliviaserena opened this issue Jun 26, 2018 · 4 comments

Comments

@oliviaserena
Copy link

oliviaserena commented Jun 26, 2018

Hello! So I am just trying to build my app for ios and android. The ios version has been released onto the App Store. However, whenever I run ./gradlew assembleRelease - the build processes for a few minutes before failing.

  • What went wrong:
    Execution failed for task ':react-native-braintree-payments-drop-in:verifyReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

Some help with this would be hugely appreciated! Thanks.

@Minishlink
Copy link
Contributor

Hello, this is much lilely not related to this repository, but please add android.enableAapt2=false in your gradle.properties

@oliviaserena
Copy link
Author

Then I just get an aapt-related error. Thanks so much for your help! New to developing for android and hugely appreciate it.

  • What went wrong:
    Execution failed for task ':react-native-braintree-payments-drop-in:verifyReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

@Minishlink
Copy link
Contributor

Can you look on these potential solutions evollu/react-native-fcm#800 It seems your project is misconfigured somehow

@ivan-kaminskyi
Copy link

ivan-kaminskyi commented Nov 6, 2018

I fixed this problem by forking the lib and adding com.android.support:appcompat-v7 to deps in gradle file

UPDATE
The other solution was to add

subprojects {
  ext {
    compileSdk = 27
    buildTools = "27.0.3"
    minSdk = 18
    targetSdk = 27
  }

  afterEvaluate { project ->
    if (!project.name.equalsIgnoreCase("app")
      && project.hasProperty("android")) {
      android {
        compileSdkVersion compileSdk
        buildToolsVersion buildTools
        defaultConfig {
          minSdkVersion minSdk
          targetSdkVersion targetSdk
        }
          configurations.all {
              resolutionStrategy {
                  force 'com.android.support:appcompat-v7:27.1.1'
              }
          }
      }
    }
  }
}

to main gradle file

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

No branches or pull requests

3 participants