Android 使用条带支付方法时域中出错
我正在我的应用程序中集成“条带”支付方法,但当我添加条带依赖编译'com.stripe:stripe-android:1.0.3'时,也尝试编译'com.stripe:stripe-android:+'时会出现一个错误,即 我看到很多关于领域重新链接器的答案,比如使用 编译'com.getkeepsafe.relinker:relinker:1.2.1' 编译“io.reactivex:rxjava:1.1.0”,但问题仍然存在 这是我的领域应用程序类Android 使用条带支付方法时域中出错,android,realm,stripe-payments,Android,Realm,Stripe Payments,我正在我的应用程序中集成“条带”支付方法,但当我添加条带依赖编译'com.stripe:stripe-android:1.0.3'时,也尝试编译'com.stripe:stripe-android:+'时会出现一个错误,即 我看到很多关于领域重新链接器的答案,比如使用 编译'com.getkeepsafe.relinker:relinker:1.2.1' 编译“io.reactivex:rxjava:1.1.0”,但问题仍然存在 这是我的领域应用程序类 public class WifiExp
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)
}
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
这是我的格拉德尔
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
}
在使用stripe之前,一切都进行得很顺利,但当我使用stripe时,它会显示错误
如有任何建议,将不胜感激 您使用的是Realm的AAR Gradle插件版本(如0.88.0+,但考虑到最新版本为1.1.0,这是一个过时版本),但您从未在build.Gradle文件中实际调用
apply Plugin:'Realm android'
您的应用程序类中也缺少这个
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)
}
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
哦,顺便说一句,你可能应该使用,这样你一开始就不需要多个索引。你能尝试使用最新的领域版本吗?在应用程序的
构建结束时,实际上有应用插件:'Realm android'
。
:)@beender哦,我错过了