2016-11-15 6 views
0

新しいAndroidのために、私のアプリで支払いオプションを追加したいと思います。だから、私はinstamojoを使用しました。 Imはinstamojoライブラリをgradleファイルに含めます。しかし、gradleファイルはエラーをスローします。instamojo in androidに統合する方法

エラー:

Error:Failed to resolve: in.juspay:godel:0.6.11.0823 

私のGradleファイル:私は別のアプリケーションでinstamojo SDKを実行する場合

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:support-v4:23.2.0' 
    compile 'de.hdodenhof:circleimageview:1.2.1' 
    compile 'com.android.support:appcompat-v7:23.2.0' 
    compile 'com.android.support:recyclerview-v7:23.2.0' 
    compile 'com.loopj.android:android-async-http:1.4.7' 
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1' 
    compile('com.googlecode.json-simple:json-simple:1.1.1') { 
     exclude group: 'org.hamcrest', module: 'hamcrest-core' 
    } 
    compile 'com.android.support:multidex:1.0.0' 
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' 
    compile 'com.android.support:design:23.1.1' 
    compile 'com.google.gms:google-services:3.0.0' 
    compile 'com.google.android.gms:play-services-gcm:8.4.0' 
    compile 'com.google.android.gms:play-services-location:8.4.0' 
    compile 'com.instamojo:android-sdk:1.2.4' 
} 

私は私のアプリと統合作業perfectly.Ifを意味Gradleのエラーの上になって意味。

解決するには誰でも助けてください。

ありがとうございます。

+0

Googleで独自のアプリ内支払い方法を提供していませんか?私はあなたがそれらに少し問題があるかもしれないと思います。 – DBX12

+0

ねえ、このリンクを参照してくださいhttps://docs.instamojo.com/page/android-sdk#section-include-sdk。私はあなたのアプリケーションのgradleファイルにmavenのリポジトリを追加していないと思います。 –

+0

@SagarGangawane今、私はこのエラーを受け取ります。エラー: ':app:processDebugManifest'タスクの実行に失敗しました。 >複数のエラーでマニフェストの合併に失敗しました。ログ – Abu

答えて

1

Error:Failed to resolve: in.juspay:godel:0.6.11.0823

From hereまたはhere

あなたはこの

// Add to build.gradle 

repositories { 
    jcenter() // <-- should already be there 

    mavenCentral() 
    maven { 
    url "https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/" 
    } 
} 

そしてapp/build.gradle

dependencies { 
    // compile 'in.juspay:godel:0.6.12.0823' // maybe need this? 
    compile 'com.instamojo:android-sdk:1.2.4' 

    // your other dependencies 
    ... 
    ... 
} 
のようにいくつかの行が含まれている allprojectsブロックを、持っている必要があります

また、この行はそこにある必要はありません。 compile 'com.google.gms:google-services:3.0.0'It should be in the classpath of the buildscriptdependencies block.

'com.android.support:design:23.1.1'は、他のAndroidサポートバージョンと一致するには23.2.0を使用する必要があります。


、あなたcan search to find something similarを「マニフェスト合併は失敗しました」と、それは他の依存関係を持つ冗長なので、この行を削除し始めます。

compile 'com.android.support:support-v4:23.2.0' 
関連する問題