Closed NilakArgento closed 9 years ago
I'm using
compile 'com.github.vijayrawatsan:android-json-form-wizard:+'
Can you try latest dependency repositories { maven { url "https://jitpack.io" } } dependencies { compile 'com.github.vijayrawatsan:android-json-form-wizard:1.1.1-SNAPSHOT' }
Doesn't work )
What can be the problem ?!
You tried to run the demo and it didnt work?
Demo works fine.
My build
apply plugin: 'com.android.application'
android {
signingConfigs {
}
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId 'us.ethnicmedia.sevendays'
minSdkVersion 14
targetSdkVersion 21
versionCode 12
versionName '2.1'
}
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'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:cardview-v7:21.+'
compile 'com.android.support:recyclerview-v7:21.+'
compile('com.mikepenz.materialdrawer:library:2.0.2@aar') {
transitive = true
}
compile 'com.etsy.android.grid:library:1.0.5'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile files('libs/volley.jar')
compile 'com.github.vijayrawatsan:android-json-form-wizard:1.1.1-SNAPSHOT'
}
Possibly tintContextWrapper.getBaseContext() is returning a ContextWrapper somehow for your case instead of activity(which implements JsonApi)
Change below line api = (JsonApi) tintContextWrapper.getBaseContext();
to
Object obj = tintContextWrapper.getBaseContext(); if( obj instanceof JsonApi) { api= (JsonApi)obj; } if (obj instanceof ContextThemeWrapper) { api = (JsonApi) ((ContextThemeWrapper)obj).getBaseContext(); }
@NilakArgento I think this is fixed for you. It would be nice if you could send a pr for the above code.
When i try to type something i have app crash In logs :