-
Notifications
You must be signed in to change notification settings - Fork 45
Caused by: com.tickaroo.tikxml.TypeAdapterNotFoundException: No TypeAdapter for class found. #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you annotated your class PostAuthRequestEnvelope wih TikXml
annotations?
Alex Podolian <[email protected]> schrieb am Fr., 4. Jan. 2019,
11:41:
… Here is app build.gradle:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.27.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
def versionMajor = 1 //up to 9
def versionMinor = 0 //up to 9
def versionBuild = 12 //up to 999
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.myapp"
minSdkVersion 21
targetSdkVersion 28
versionCode versionMajor * 10_000 + versionMinor * 1_000 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionBuild}"
multiDexEnabled true
}
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = "${parent.name}-${variant.versionName}-${variant.versionCode}.apk"
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
dataBinding {
enabled = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
debug {
storeFile file("keys/debug.jks")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
debug {
minifyEnabled false
debuggable true
signingConfig signingConfigs.debug
buildConfigField "String", "API_ENDPOINT", "\"https://my.api.endpoint/\""
buildConfigField "String", "GOOGLE_MAP_API_ENDPOINT", "\"https://maps.googleapis.com/maps/api/\""
buildConfigField "String", "GOOGLE_PLACE_API_KEY", "\"some_google_api_key\""
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/mail.jar')
implementation files('libs/activation.jar')
***@***.***') {
transitive = true
}
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.android:flexbox:0.1.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.yqritc:recyclerview-flexibledivider:1.4.0'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.11.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.7'
implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
implementation 'me.ydcool.lib:qrmodule:1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.github.simbiose:Encryption:2.0.0'
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.github.bumptech.glide:glide:4.7.1'
implementation 'q.rorbin:badgeview:1.1.2'
implementation 'jp.wasabeef:recyclerview-animators:2.2.7'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.tickaroo.tikxml:retrofit-converter:0.8.16-SNAPSHOT'
implementation 'com.tickaroo.tikxml:annotation:0.8.16-SNAPSHOT'
implementation 'com.tickaroo.tikxml:core:0.8.16-SNAPSHOT'
annotationProcessor 'com.tickaroo.tikxml:processor:0.8.16-SNAPSHOT'
}
apply plugin: 'com.google.gms.google-services'
Here is myApp build.gradle:
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
maven { url 'https://jitpack.io' }
maven {
url "https://maven.google.com"
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Here is my gradle.properties:
org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
android.buildCacheDir=/home/alex/AndroidStudioProjects/myApp_cache
I'm trying to send request via Retrofit2 + RxJava2:
public interface SomeApi {
@post("SomeService")
Observable<Response<PostAuthResponseEnvelope>> ***@***.*** PostAuthRequestEnvelope body);
}
@xml(name="Envelope")
public class PostAuthRequestEnvelope {
@PropertyElement (name = "Body")
private String body;
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
}
Here is logcat:
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: java.lang.RuntimeException: Unable to convert ***@***.*** to RequestBody
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:357)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.ServiceMethod.toCall(ServiceMethod.java:110)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.OkHttpCall.execute(OkHttpCall.java:167)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at io.reactivex.Observable.subscribe(Observable.java:10981)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at java.lang.Thread.run(Thread.java:818)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: Caused by: com.tickaroo.tikxml.TypeAdapterNotFoundException: No TypeAdapter for class com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope found. Expected name of the type adapter is com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:112)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.TikXml.write(TikXml.java:128)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.TikXml.write(TikXml.java:121)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: ... 12 more
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: Caused by: java.lang.ClassNotFoundException: com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.Class.classForName(Native Method)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.Class.forName(Class.java:308)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.Class.forName(Class.java:272)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: ... 18 more
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter" on path: DexPathList[[zip file "/data/app/com.myapp-2/base.apk", zip file "/data/app/com.myapp-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: ... 22 more
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: Suppressed: java.lang.ClassNotFoundException: com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.Class.classForName(Native Method)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: ... 23 more
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
01-04 12:17:44.671 22973-22973/com.myapp E/<-- myappApp -->: Unable to convert ***@***.*** to RequestBody
java.lang.RuntimeException: Unable to convert ***@***.*** to RequestBody
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:357)
at retrofit2.ServiceMethod.toCall(ServiceMethod.java:110)
at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:167)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: com.tickaroo.tikxml.TypeAdapterNotFoundException: No TypeAdapter for class com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope found. Expected name of the type adapter is com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:112)
at com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:128)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:121)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355)
at retrofit2.ServiceMethod.toCall(ServiceMethod.java:110)
at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:167)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at java.lang.Class.forName(Class.java:272)
at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88)
at com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:128)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:121)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355)
at retrofit2.ServiceMethod.toCall(ServiceMethod.java:110)
at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:167)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter" on path: DexPathList[[zip file "/data/app/com.myapp-2/base.apk", zip file "/data/app/com.myapp-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.myapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at java.lang.Class.forName(Class.java:272)
at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88)
at com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:128)
at com.tickaroo.tikxml.TikXml.write(TikXml.java:121)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355)
at retrofit2.ServiceMethod.toCall(ServiceMethod.java:110)
at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:167)
at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Suppressed: java.lang.ClassNotFoundException: com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 23 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
I have been trying to figure out what is going wrong for a couple days,
but still no result=((
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#120>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjnrhMtiaMWlAaA3szDEgN59alrq3jYks5u_y_lgaJpZM4ZpeEj>
.
|
I suppose yes.
I have been doing everything according to documentation: https://github.com/Tickaroo/tikxml/blob/master/docs/AnnotatingModelClasses.md |
Do you run Proguard? Or is rhis class part of another gradle Module?
Alex Podolian <[email protected]> schrieb am Fr., 4. Jan. 2019,
11:49:
… Have you annotated your class PostAuthRequestEnvelope wih TikXml
annotations? Alex Podolian ***@***.*** schrieb am Fr., 4.
Jan. 2019, 11:41:
… <#m_9205809836505676206_>
Here is app build.gradle: buildscript { repositories { maven { url '
https://maven.fabric.io/public' } } dependencies { classpath
'io.fabric.tools:gradle:1.27.0' } } apply plugin: 'com.android.application'
apply plugin: 'io.fabric' repositories { maven { url '
https://maven.fabric.io/public' } } def versionMajor = 1 //up to 9 def
versionMinor = 0 //up to 9 def versionBuild = 12 //up to 999 android {
compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig {
applicationId "com.myapp" minSdkVersion 21 targetSdkVersion 28 versionCode
versionMajor * 10_000 + versionMinor * 1_000 + versionBuild versionName
"${versionMajor}.${versionMinor}.${versionBuild}" multiDexEnabled true }
android.applicationVariants.all { variant -> variant.outputs.all { output
-> outputFileName = "${parent.name}-${variant.versionName}-${variant.versionCode}.apk"
} } lintOptions { checkReleaseBuilds false abortOnError false } dataBinding
{ enabled = true } compileOptions { sourceCompatibility
JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
signingConfigs { debug { storeFile file("keys/debug.jks") storePassword
"android" keyAlias "androiddebugkey" keyPassword "android" } } buildTypes {
debug { minifyEnabled false debuggable true signingConfig
signingConfigs.debug buildConfigField "String", "API_ENDPOINT", ""[
https://my.api.endpoint/](https://my.api.endpoint/%5C)
<https://my.api.endpoint/%5D(https://my.api.endpoint/%5C)>""
buildConfigField "String", "GOOGLE_MAP_API_ENDPOINT", ""[
https://maps.googleapis.com/maps/api/](https://maps.googleapis.com/maps/api/%5C)
<https://maps.googleapis.com/maps/api/%5D(https://maps.googleapis.com/maps/api/%5C)>""
buildConfigField "String", "GOOGLE_PLACE_API_KEY", ""some_google_api_key""
} } } dependencies { implementation fileTree(include: ['*.jar'], dir:
'libs') implementation files('libs/mail.jar') implementation
files('libs/activation.jar') ***@***.***') { transitive = true }
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0' implementation
'com.android.support:design:28.0.0' implementation
'com.android.support:multidex:1.0.3' implementation
'com.android.support:support-v4:28.0.0' implementation
'com.android.support:cardview-v7:28.0.0' implementation
'com.google.android:flexbox:0.1.2' implementation
'com.android.support.constraint:constraint-layout:1.1.3' implementation
'com.yqritc:recyclerview-flexibledivider:1.4.0' implementation
'com.jakewharton:butterknife:8.8.1' implementation
'com.squareup.retrofit2:retrofit:2.4.0' implementation
'com.squareup.retrofit2:converter-gson:2.4.0' implementation
'com.squareup.retrofit2:adapter-rxjava2:2.3.0' implementation
'com.squareup.okhttp3:okhttp:3.11.0' implementation
'com.squareup.okhttp3:logging-interceptor:3.11.0' implementation
'com.squareup.okhttp3:okhttp-urlconnection:3.11.0' implementation
'io.reactivex.rxjava2:rxandroid:2.0.1' implementation
'io.reactivex.rxjava2:rxjava:2.1.7' implementation
'com.facebook.stetho:stetho:1.5.0' implementation
'com.facebook.stetho:stetho-okhttp3:1.5.0' implementation
'me.ydcool.lib:qrmodule:1.0' implementation
'com.google.firebase:firebase-messaging:17.3.4' implementation
'com.google.firebase:firebase-core:16.0.6' implementation
'com.github.simbiose:Encryption:2.0.0' implementation
'org.greenrobot:eventbus:3.0.0' implementation
'com.github.bumptech.glide:glide:4.7.1' implementation
'q.rorbin:badgeview:1.1.2' implementation
'jp.wasabeef:recyclerview-animators:2.2.7' annotationProcessor
'com.github.bumptech.glide:compiler:4.6.1' annotationProcessor
'com.jakewharton:butterknife-compiler:8.8.1' implementation
'com.tickaroo.tikxml:retrofit-converter:0.8.16-SNAPSHOT' implementation
'com.tickaroo.tikxml:annotation:0.8.16-SNAPSHOT' implementation
'com.tickaroo.tikxml:core:0.8.16-SNAPSHOT' annotationProcessor
'com.tickaroo.tikxml:processor:0.8.16-SNAPSHOT' } apply plugin:
'com.google.gms.google-services' Here is myApp build.gradle: buildscript {
repositories { jcenter() maven { url 'https://maven.google.com/' name
'Google' } mavenCentral() maven { url '
http://oss.sonatype.org/content/repositories/snapshots' } } dependencies
{ classpath 'com.android.tools.build:gradle:3.2.1' classpath
'com.google.gms:google-services:4.2.0' } } allprojects { repositories {
google() jcenter() mavenCentral() maven { url '
http://oss.sonatype.org/content/repositories/snapshots' } maven { url '
https://jitpack.io' } maven { url "https://maven.google.com" } maven {
url 'https://maven.google.com/' name 'Google' } } } task clean(type:
Delete) { delete rootProject.buildDir } Here is my gradle.properties:
org.gradle.daemon=true org.gradle.configureondemand=true
org.gradle.parallel=true org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m
-XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
android.buildCacheDir=/home/alex/AndroidStudioProjects/myApp_cache I'm
trying to send request via Retrofit2 + RxJava2: public interface SomeApi {
@post <https://github.com/post>("SomeService") Observable<Response> login(
@Body <https://github.com/Body> PostAuthRequestEnvelope body); } @xml
<https://github.com/xml>(name="Envelope") public class
PostAuthRequestEnvelope { @PropertyElement (name = "Body") private String
body; public String getBody() { return body; } public void setBody(String
body) { this.body = body; } } Here is logcat: 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: java.lang.RuntimeException: Unable to
convert ***@***.*** to RequestBody 01-04 12:17:44.661 22973-22973/com.myapp
W/System.err: at
retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:357) 01-04
12:17:44.661 22973-22973/com.myapp W/System.err: at
retrofit2.ServiceMethod.toCall(ServiceMethod.java:110) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
retrofit2.OkHttpCall.execute(OkHttpCall.java:167) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
io.reactivex.Observable.subscribe(Observable.java:10981) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
java.util.concurrent.FutureTask.run(FutureTask.java:237) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
java.lang.Thread.run(Thread.java:818) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: Caused by:
com.tickaroo.tikxml.TypeAdapterNotFoundException: No TypeAdapter for class
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope
found. Expected name of the type adapter is
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:112) 01-04
12:17:44.661 22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85) 01-04
12:17:44.661 22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.TikXml.write(TikXml.java:128) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.TikXml.write(TikXml.java:121) 01-04 12:17:44.661
22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
01-04 12:17:44.661 22973-22973/com.myapp W/System.err: at
retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355) 01-04
12:17:44.661 22973-22973/com.myapp W/System.err: ... 12 more 01-04
12:17:44.661 22973-22973/com.myapp W/System.err: Caused by:
java.lang.ClassNotFoundException:
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at
java.lang.Class.classForName(Native Method) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: at
java.lang.Class.forName(Class.java:308) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: at
java.lang.Class.forName(Class.java:272) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: at
com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88) 01-04
12:17:44.671 22973-22973/com.myapp W/System.err: ... 18 more 01-04
12:17:44.671 22973-22973/com.myapp W/System.err: Caused by:
java.lang.ClassNotFoundException: Didn't find class
"com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter"
on path: DexPathList[[zip file "/data/app/com.myapp-2/base.apk", zip file
"/data/app/com.myapp-2/split_lib_dependencies_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_0_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_1_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_2_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_3_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_4_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_5_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_6_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_7_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_8_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib,
/system/lib]] 01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at
java.lang.ClassLoader.loadClass(ClassLoader.java:511) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: at
java.lang.ClassLoader.loadClass(ClassLoader.java:469) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: ... 22 more 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: Suppressed:
java.lang.ClassNotFoundException:
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
01-04 12:17:44.671 22973-22973/com.myapp W/System.err: at
java.lang.Class.classForName(Native Method) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: at
java.lang.BootClassLoader.findClass(ClassLoader.java:781) 01-04
12:17:44.671 22973-22973/com.myapp W/System.err: at
java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 01-04
12:17:44.671 22973-22973/com.myapp W/System.err: at
java.lang.ClassLoader.loadClass(ClassLoader.java:504) 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: ... 23 more 01-04 12:17:44.671
22973-22973/com.myapp W/System.err: Caused by:
java.lang.NoClassDefFoundError: Class not found using the boot class
loader; no stack available 01-04 12:17:44.671 22973-22973/com.myapp E/<--
myappApp -->: Unable to convert ***@***.*** to RequestBody
java.lang.RuntimeException: Unable to convert ***@***.*** to RequestBody at
retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:357) at
retrofit2.ServiceMethod.toCall(ServiceMethod.java:110) at
retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184) at
retrofit2.OkHttpCall.execute(OkHttpCall.java:167) at
retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981) at
io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818) Caused by:
com.tickaroo.tikxml.TypeAdapterNotFoundException: No TypeAdapter for class
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope
found. Expected name of the type adapter is
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:112) at
com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:128) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:121) at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355) at
retrofit2.ServiceMethod.toCall(ServiceMethod.java:110) at
retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184) at
retrofit2.OkHttpCall.execute(OkHttpCall.java:167) at
retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981) at
io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818) Caused by:
java.lang.ClassNotFoundException:
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at java.lang.Class.classForName(Native Method) at
java.lang.Class.forName(Class.java:308) at
java.lang.Class.forName(Class.java:272) at
com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88) at
com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:128) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:121) at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355) at
retrofit2.ServiceMethod.toCall(ServiceMethod.java:110) at
retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184) at
retrofit2.OkHttpCall.execute(OkHttpCall.java:167) at
retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981) at
io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818) Caused by:
java.lang.ClassNotFoundException: Didn't find class
"com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter"
on path: DexPathList[[zip file "/data/app/com.myapp-2/base.apk", zip file
"/data/app/com.myapp-2/split_lib_dependencies_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_0_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_1_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_2_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_3_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_4_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_5_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_6_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_7_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_8_apk.apk", zip file
"/data/app/com.myapp-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib,
/system/lib]] at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at
java.lang.ClassLoader.loadClass(ClassLoader.java:511) at
java.lang.ClassLoader.loadClass(ClassLoader.java:469) at
java.lang.Class.classForName(Native Method) at
java.lang.Class.forName(Class.java:308) at
java.lang.Class.forName(Class.java:272) at
com.tickaroo.tikxml.TypeAdapters.get(TypeAdapters.java:88) at
com.tickaroo.tikxml.TikXmlConfig.getTypeAdapter(TikXmlConfig.java:85) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:128) at
com.tickaroo.tikxml.TikXml.write(TikXml.java:121) at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:45)
at
com.tickaroo.tikxml.retrofit.TikXmlRequestBodyConverter.convert(TikXmlRequestBodyConverter.java:34)
at retrofit2.ParameterHandler$Body.apply(ParameterHandler.java:355) at
retrofit2.ServiceMethod.toCall(ServiceMethod.java:110) at
retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:184) at
retrofit2.OkHttpCall.execute(OkHttpCall.java:167) at
retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:41)
at io.reactivex.Observable.subscribe(Observable.java:10981) at
io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at
io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:237) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818) Suppressed:
java.lang.ClassNotFoundException:
com.myapp.data.net.rest.request.post_auth_request.PostAuthRequestEnvelope$$TypeAdapter
at java.lang.Class.classForName(Native Method) at
java.lang.BootClassLoader.findClass(ClassLoader.java:781) at
java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at
java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 23 more Caused
by: java.lang.NoClassDefFoundError: Class not found using the boot class
loader; no stack available I have been trying to figure out what is going
wrong for a couple days, but still no result=(( — You are receiving this
because you are subscribed to this thread. Reply to this email directly,
view it on GitHub <#120 <#120>>,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjnrhMtiaMWlAaA3szDEgN59alrq3jYks5u_y_lgaJpZM4ZpeEj
.
import com.tickaroo.tikxml.annotation.PropertyElement;
import com.tickaroo.tikxml.annotation.Xml;
@xml(name="Envelope")
public class PostAuthRequestEnvelope {
@PropertyElement (name = "Body")
private String body;
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjnrmAZ4wxFAtuqC5ef-D9cC1lyDupoks5u_zHGgaJpZM4ZpeEj>
.
|
Produard runs only in release mode. I don't use it in debug mode. Even though all rules for TikXml added to proguard in right manner. Here is my rules in proguard:
|
Here is my Retrofit builder:
Maybe I have missed something... |
There is no &&TypeAdapter class in generated folder. I use retrofit2 and RxJava in my project. And for sending xml requests and parsing xml responses I tried to use TikXml, cause it has a lot of benefits comparing with SimpleXML, and it works with Retrofit2. But I still can't make it work. Damn(( What is going wrong here? Please help... |
I am noticed that you uses android build cache. Maybe, you should clear it then build again |
I have just made next actions:
As a result - nothing have changed at all. Same problem - No TypeAdapter.
|
Please check if the following directoy contains the generated TypeAdapter Files:
Are there files in this directory that end with |
I have no $$TypeAdapter Files in generated directory on path
|
Sorry, the folder should be As you also use butterknife, do you see generated butterknife classes somewhere in this folder? |
I have made a double-check and didn't find any $$TypeAdapter in all generated folders including
and so on...
|
And if build from command line (run grandlew build) you don't see any
error?
Alex Podolian <[email protected]> schrieb am Di., 8. Jan. 2019,
02:20:
… I have made a double-check and didn't find any $$TypeAdapter in all
generated folders including app/build/generated/source/apt .
And yes, I have a lot of generated classes by butterknife and also
databinding.
Here is some of it's names:
MainActivity_ViewBinding
RegisterFragment_ViewBinding
ActivityProfileEditBindingImpl
ActivityProfileEditBinding
and so on...
Everything works fine except tikxml=(((
Sorry, the folder should be app/build/generated/source/apt if you use
java (not kapt which is for kotlin)
As you also use butterknife, do you see generated butterknife classes
somewhere in this folder?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjnrv_p4NzJsYramZIPNAfu_dRDvWmjks5vA_J2gaJpZM4ZpeEj>
.
|
Build from command line:
|
I suppose problem is here:
What can I do with that? |
Hm, interesting ...
What this message basically says is that D8 compiles the processor into your APK. This should not happen because you have not an Could you please write the following to your command line and write the output: Is your project somewhere available so that I can try to debug it on my machine? Does it work by using |
Here is dependencies from running If set:
Output from 0.8.13 build fails: If building without Unfortunately I can't provide U access to that project for now(( But I will try to provide U access to code if we don't manage this issue.
|
Any ideas how to figure out this problem? |
Using Kotlin and:
does NOT generate TypeAdapter classes for me. Using:
does generate TypeAdapter classes, but naturally there are some features missing in 0.8.13.
notice that only annotation artifact is in version 0.8.13. |
Hello, sorry I am having the same problem. Did you find a solution? |
The Snapshot builds should be fixed now over recent changes |
I tried with this: (I am doing the app in Java) And I am getting this error when I sync the project: |
As mentioned here, you'll need to use
I haven't tested pulling retrofit-converter, but the rest should work. If you need to use 0.8.13 with any of these, exclude core. e.g.
|
Here is app build.gradle:
Here is myApp build.gradle:
Here is my gradle.properties:
I'm trying to send request via Retrofit2 + RxJava2:
Here is logcat:
I have been trying to figure out what is going wrong for a couple days, but still no result=((
The text was updated successfully, but these errors were encountered: