Leku: Can't run my device with Leku versions > 3.4.5

Description

It works fine with 3.4.5, but in pre lollipop device gives me ClassNotFoundException, so I decided to upgrade Leku to the newest The problem is that it doens’t compile. I’m using Java 8 I’ve also tried to clean project, invalidating cache and restarting and removing manually .gradle/cache

(I’ll test it later with a clean project)

Info Required

  • Which version of the library do you actually use? 3.6.2

  • Do you have the localization permission granted? Yes

  • Are you sending parameters to the activity through the bundle?

  • Could you describe what are the actions do you make to raise that error? Compiling and running in device

  • Android monitor shows any log related to the library when the error is shown? Gradle messages error_leku

Full Gradle Console messages run with --stacktrace

  • Any other thing that could help me to reproduce the error? Gradle configuration:
android {
    compileSdkVersion 26
    buildToolsVersion '26.0.2'
    defaultConfig {
        applicationId "-"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode -
        versionName "-"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 42 (19 by maintainers)

Most upvoted comments

I have good and bad news. The bad one is that I got the error again (?) The good one is that cloning it and importing it as a module to the project works good

I think it’s android studio’s fault.

Take a look to this solution @rahuldange09

@ferranpons I’m extremely sorry… github recommendation. No i don’t have GeocoderPressenter class in my project.

Well, adding that line gives me less errors, but setting enableD8 to true works. Anyway, it still gives me an error while building intent Intent i = new LocationPickerActivity.Builder() .withGeolocApiKey(getString(R.string.google_maps_key)) .withSearchZone("es_ES") .build(getContext());

Error: java.lang.NoClassDefFoundError: com.schibstedspain.leku.LocationPickerActivity at com.schibstedspain.leku.LocationPickerActivity$Builder.build(LocationPickerActivity.java:1143)

I got I think the same message, but for me it’s the first time I use it just by following tutorial here.

error

android { compileSdkVersion 27 defaultConfig { applicationId “xxxx” minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName “1.0” vectorDrawables.useSupportLibrary = true multiDexEnabled true }

and compile ‘com.schibstedspain.android:leku:3.6.2’

any help please? thanks