veritrans / veritrans-android

The easiest way to integrate with Veritrans payment API on android
MIT License
74 stars 54 forks source link

Urgent - Gradle build failed #136

Closed ericntd closed 8 years ago

ericntd commented 8 years ago
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:50:9-40
    is also present at [com.midtrans:uikit:1.0.2] AndroidManifest.xml:13:9-49 value=(@style/VeritransAppTheme).
    Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:42:5-407:19 to override.

I've already had the following in my Manifest.xml:

<application
        android:name=".SdsApplication"
        android:allowBackup="true"
        android:debuggable="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="HardcodedDebugMode"
        tools:node="replace"
        tools:replace="android:theme">
        <!-- // stuffs -->
</application>

I'm using Android 2.2.0

I followed your advice and I'm using the following build.gradle:

dependencies {
    // other dependencies...
    // For using the Veritrans Sandbox
    compile 'com.midtrans:uikit:1.0.2-SANDBOX'
    // For using the Veritrans Production
    compile 'com.midtrans:uikit:1.0.2'
}

Is it possible for us to communicate via email or chat @rakawestu ? My email address is eric at sephoradigital.com

rakawestu commented 8 years ago

The dependencies should be like this (differentiate based on flavor).

dependencies {
    // other dependencies...
    // For using the Veritrans Sandbox
    developmentCompile 'com.midtrans:uikit:1.0.2-SANDBOX'
    // For using the Veritrans Production
    productionCompile 'com.midtrans:uikit:1.0.2'
}

Sure, you can email (see my Github profile).

ericntd commented 8 years ago

I've updated my build.gradle but the error remains the same @rakawestu