2016-07-14 9 views
2

私のアプリで「ストリップ」支払い方法を統合していますが、ストライプ依存を追加すると「com.stripe:stripe-android:1.0.3」もコンパイルしようとします 'com.stripe :ストライプのandroid:relinker:1.2.1「 コンパイル 『+ com.getkeepsafe.relinker』エラーがそれは私がストライプのお支払い方法を使用している場合、領域内のエラー

コンパイルを使用してのように再リンカレルムの多くの回答を参照してください enter image description here

で起こります」 io.reactivex:rxjava:1.1.0 'しかし、問題はまだ存在します これは私のRealmアプリケーションクラスです

public class WifiExploreApplication extends Application { 
@Override 

public void onCreate(){ 
super.onCreate(); 

RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this) 
      .name("com.holygon.zaingz.alu").build(); 
    Realm.setDefaultConfiguration(realmConfiguration) 
    } 

} 

これは、すべてのサブプロジェクト/モジュールに共通する設定オプションを追加することができ、私のGradle

apply plugin: 'com.android.application' 
android { 
compileSdkVersion 'Google Apis:Google Apis:23' 
buildToolsVersion "23.0.2" 
defaultConfig { 
    applicationId "com.example.wifiexplorer" 
    minSdkVersion 19 
    targetSdkVersion 23 
    versionCode 1 
    multiDexEnabled true 
    versionName "1.0" 

} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'),  'proguard-rules.pro' 
     } 
    } 
productFlavors { 
} 
} 
repositories { 
maven { url "https://jitpack.io" } 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 

testCompile 'junit:junit:4.12' 

compile 'com.android.support:cardview-v7:23.2.1' 
compile 'com.android.support:recyclerview-v7:23.1.1' 
compile 'com.android.support:appcompat-v7:23.0.0' 
compile 'com.github.sembozdemir:ViewPagerArrowIndicator:1.0.0' 
compile 'de.hdodenhof:circleimageview:2.0.0' 

compile 'com.android.support:multidex:1.0.0' 
compile "com.android.support:support-v4:23.0.0" 
compile 'com.google.android.gms:play-services:8.4.0' 

compile 'com.getkeepsafe.relinker:relinker:1.2.1' 
compile 'com.stripe:stripe-android:1.0.3' 

} 


dependencies { 
repositories { 
    mavenCentral() 
    } 
compile 'com.sothree.slidinguppanel:library:3.3.0' 

} 



allprojects { 
repositories { 

    maven { url "https://jitpack.io" } 
} 
} 

apply plugin: 'realm-android' 

//トップレベルのビルドファイルです。すべての物事がうまく行くが、私はストリップを使用する場合、それはどんな提案ができるよう理解されるであろうエラー が表示されますストライプを使用する前に

buildscript { 
repositories { 
    jcenter() 
} 
dependencies { 
    classpath 'com.android.tools.build:gradle:2.1.0' 
    classpath "io.realm:realm-gradle-plugin:0.88.2" 

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

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
delete rootProject.buildDir 
} 

..

+0

最新のレルムバージョンを使用してみてください。 – beeender

答えて

1

あなたはのようにレルムのAARのGradleプラグインのバージョンを(使用しています0.88.0 +ですが、最新のものを考慮して古いものは1.1.0ですが、実際にはbuild.gradleファイルでapply plugin: 'realm-android'と呼ぶことはありません)。

また、途中でああ

@Override 
protected void attachBaseContext(Context base) { 
    super.attachBaseContext(base); 
    MultiDex.install(this); 
} 

アプリケーションクラスからこれを逃しているあなたも、最初の場所でマルチデックスを必要としないように、あなたはおそらく modularized version of Google Play Servicesを使用する必要があります。

+1

実際にアプリケーションの 'build.gradle'の最後に' apply plugin: 'realm-android''があります:) – beeender

+0

@beeenderああ私はそれを逃しました – EpicPandaForce

+0

あなたのおかげさまであなたは両方とも素晴らしい人です<3 –

関連する問題