Tipsi-stripe: on Android: Execution failed for task ':tipsi-stripe:processReleaseResources'

Created on 17 May 2017  路  9Comments  路  Source: tipsi/tipsi-stripe

When I try to run my android project with tipsi-stripe, I get:

$ react-native run-android
Scanning 571 folders for symlinks in <project-home>/node_modules (3ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
<... bunch of other modules ...>
:tipsi-stripe:preBuild UP-TO-DATE
:tipsi-stripe:preReleaseBuild UP-TO-DATE
:tipsi-stripe:compileReleaseNdk UP-TO-DATE
:tipsi-stripe:compileLint
:tipsi-stripe:copyReleaseLint UP-TO-DATE
:tipsi-stripe:checkReleaseManifest
:tipsi-stripe:preDebugAndroidTestBuild UP-TO-DATE
:tipsi-stripe:preDebugBuild UP-TO-DATE
:tipsi-stripe:preDebugUnitTestBuild UP-TO-DATE
:tipsi-stripe:preReleaseUnitTestBuild UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportAnimatedVectorDrawable2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportAppcompatV72501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportCompat2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportCoreUi2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportCoreUtils2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportFragment2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportMediaCompat2501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportV42501Library UP-TO-DATE
:tipsi-stripe:prepareComAndroidSupportSupportVectorDrawable2501Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoDrawee101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoFbcore101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoFresco101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoImagepipeline101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoImagepipelineBase101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookFrescoImagepipelineOkhttp3101Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookReactReactNative0440Library UP-TO-DATE
:tipsi-stripe:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:tipsi-stripe:prepareComGithubThefuntastyCreditCardEntry1484Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesBase1024Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesBasement1024Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesIdentity1024Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesMaps1024Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesTasks1024Library UP-TO-DATE
:tipsi-stripe:prepareComGoogleAndroidGmsPlayServicesWallet1024Library UP-TO-DATE
:tipsi-stripe:prepareComStripeStripeAndroid210Library UP-TO-DATE
:tipsi-stripe:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:tipsi-stripe:prepareReleaseDependencies
:tipsi-stripe:compileReleaseAidl UP-TO-DATE
:tipsi-stripe:compileReleaseRenderscript UP-TO-DATE
:tipsi-stripe:generateReleaseBuildConfig UP-TO-DATE
:tipsi-stripe:generateReleaseAssets UP-TO-DATE
:tipsi-stripe:mergeReleaseAssets UP-TO-DATE
:tipsi-stripe:generateReleaseResValues UP-TO-DATE
:tipsi-stripe:generateReleaseResources UP-TO-DATE
:tipsi-stripe:mergeReleaseResources UP-TO-DATE
:tipsi-stripe:processReleaseManifest UP-TO-DATE
:tipsi-stripe:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tipsi-stripe:processReleaseResources'.
> at index 4

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10.291 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
$ adb devices
List of devices attached
ZY223KDRZQ  device

There is a device attached and it works without the tipsy-stripe module. What am I missing/doing wrong?

help wanted

Most helpful comment

OK, reinstalling android sdk seems to solve the issue... (although there's another problem now :p)

All 9 comments

@paynd please take a look

Hi @qsys , are you sure that your android buildtools (25.0.0) installed properly? I've tried to reproduce this case, its looks like you got an issue with buildtools. What buildtools version is in your build.gradle?

screenshot from 2017-05-17 18-34-54

android buildtools 25.0.0 seems to be installed.

I did change the buildtools version in build.gradle before, didn't work out fine. I'll try again later.

same with:

$ cat android/app/build.gradle 
apply plugin: "com.android.application"

import com.android.build.OutputFile

/**
< ... >
 */

apply from: "../../node_modules/react-native/react.gradle"

/**
 < ... >
 */
def enableSeparateBuildPerCPUArchitecture = false

/**
 * Run Proguard to shrink the Java bytecode in release builds.
 */
def enableProguardInReleaseBuilds = false

android {
    compileSdkVersion 23
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId < app-id >
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
       < ... >
    }
    < ... >
}

dependencies {
    compile project(':tipsi-stripe')
   < ... >
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
  from configurations.compile
  into 'libs'
}

same error when changing compileSdkVersion to 25:

$ cat android/app/build.gradle 

< ... >

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"

    < ... >
}
< ... >

and android/build.gradle:

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

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        // Add jitpack repository (added by tipsi-stripe)
        maven { url "https://jitpack.io" }
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

And same error when I set compile "com.android.support:appcompat-v7:25.0.1" (instead of 23.0.1) in dependencies of build.gradle

OK, reinstalling android sdk seems to solve the issue... (although there's another problem now :p)

I'm glad that it helped!

Was this page helpful?
0 / 5 - 0 ratings