Followers

Friday, 13 October 2017

Android studio 3.0 !!! JUnit version 3.8 or later expected

Source: stackoverflow.com --- Thursday, October 12, 2017
tried to follow this and this but without any luck. I am using Android studio 3.0 and junit 4.12. Windows 10. What I have tried: move the junit dependency up (tried test compilation and implementation scope) delete the tests in Run - Edit configurations... - remove all under Android JUnit and Android App My graddle looks like this: apply plugin: 'kotlin' dependencies { implementation project(':domain') compile fileTree(include: ['*.jar'], dir: 'libs') testCompileOnly 'junit:junit:4.12' testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0' testImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testImplementation 'com.nhaarman:mockito-kotlin:1.1.0' testImplementation 'org.amshove.kluent:kluent:1.14' implementation 'com.google.api.client:google-api-client-repackaged-com-google-common-base:1.2.3-alpha' implementation 'com.squareup.retrofit2:retrofit:2.3.0' implementation 'com.squareup.retrofit2:converter-gson:2.3.0' implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0' } My test looks like this: package ***.roompanel.data; import com.google.gson.FieldNamingStrategy; import com.google.gson.Gson; import com.google.gson.TypeAdapterFactory; import ***.roompanel.data.RestApi.ApiFieldNamingStrategy; import ***.roompanel.data.RestApi.ApiGsonBuilder; import ***.roompanel.data ...



from Windows http://ift.tt/2yj2bYg

No comments:

Post a Comment