Skip to content
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

Transformation circle crashed with exception #91

Open
javier4mar opened this issue Aug 28, 2019 · 0 comments
Open

Transformation circle crashed with exception #91

javier4mar opened this issue Aug 28, 2019 · 0 comments

Comments

@javier4mar
Copy link

Hi, friends, we have a problem, when we try to update to the new version 4.1.0, when we start the activity messaging the application have a crash, there is the description

Exactly in the com.liveperson.infra.utils.picasso.BitmapHunter .

java.lang.RuntimeException: Transformation circle crashed with an exception. at com.liveperson.infra.utils.picasso.BitmapHunter$3.run(BitmapHunter.java:450) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Bitmap$Config.nativeInt' on a null object reference at android.graphics.Bitmap.createBitmap(Bitmap.java:879) at android.graphics.Bitmap.createBitmap(Bitmap.java:856) at android.graphics.Bitmap.createBitmap(Bitmap.java:823) at com.liveperson.infra.ui.view.utils.picasso.CircleTransform.transform(CircleTransform.java:43) at com.liveperson.infra.utils.picasso.BitmapHunter.applyCustomTransformations(BitmapHunter.java:445) at com.liveperson.infra.utils.picasso.BitmapHunter.hunt(BitmapHunter.java:254) at com.liveperson.infra.utils.picasso.BitmapHunter.run(BitmapHunter.java:175) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) at com.liveperson.infra.utils.picasso.Utils$PicassoThread.run(Utils.java:354)

There is my gradle file


buildscript {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url "https://maven.google.com/" }
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath 'com.google.gms:google-services:3.2.1'
        classpath 'io.fabric.tools:gradle:1.26.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.31"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
        maven { url "https://maven.google.com/" }
        maven { url 'https://maven.fabric.io/public' }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

ext {
    // Sdk and tools
    minSdkVersion = 20
    targetSdkVersion = 28
    compileSdkVersion = 28

    // App dependencies
    multidexVersion = '1.0.3'
    supportLibraryVersion = '28.0.0'
    circularImageVersion = '3.0.0'
    rx2FastAndroidNetworking = '1.0.1'
    gsonVersion = '2.8.0'
    imageLoaderVersion = '1.9.5'
    roomDatabase = '1.1.1'
    lifecycleVersion = '1.1.1'
    dagger2Version = '2.8'
    rxjava2Version = '2.0.6'
    rxandroidVersion = '2.0.2'
    timberVersion = '4.6.0'
    toastyVersion = '1.2.8'

    firebaseVersion = '17.2.0'
    crashlytics = '2.10.0'

    //Test dependencies
    junitVersion = '4.12'
    espressoVersion = '2.2.2'

    debugDBVersion = '1.0.0'
}




apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {

    compileSdkVersion rootProject.ext.compileSdkVersion
    compileOptions.incremental = false
    buildToolsVersion "29.0.0"

    defaultConfig {
        applicationId "com.xxxx.android"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 2
        versionName "1.0.2"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        renderscriptTargetApi rootProject.ext.targetSdkVersion
        renderscriptSupportModeEnabled true
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true

    }


    buildTypes {
        debug {
        
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

}


dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    // multiDex application
    implementation 'androidx.multidex:multidex:2.0.1'

    // android support libraries
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0'

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.0.1'
    implementation 'androidx.vectordrawable:vectordrawable-animated:1.0.0'
    implementation 'androidx.browser:browser:1.0.0'

    implementation group: 'net.databinder', name: 'dispatch-http_2.11', version: '0.8.10'

    //material search view
    implementation 'com.miguelcatalan:materialsearchview:1.4.0'

    //Animation
    implementation 'com.daimajia.easing:library:2.1@aar'

    // facebook
    implementation 'com.facebook.android:facebook-login:5.1.1'
    // circular imageView
    implementation "de.hdodenhof:circleimageview:$rootProject.circularImageVersion"

    // retrofit2
    implementation 'com.squareup.retrofit2:retrofit:2.6.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.6.0'

    // RxAndroid-retrofit2.
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'

    //carouselview
    implementation 'com.synnapps:carouselview:0.1.5'

    // logging
    implementation 'com.squareup.okhttp3:okhttp:4.0.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:4.0.0'

    // RxJava
    implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version"

    // RxAndroid
    implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"

    // image loader
    implementation "com.nostra13.universalimageloader:universal-image-loader:$rootProject.imageLoaderVersion"

    // database
    implementation 'androidx.room:room-rxjava2:2.1.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    annotationProcessor 'androidx.room:room-compiler:2.1.0'

    // viewModel and liveData
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'

    // firebase
    implementation "com.google.firebase:firebase-core:$rootProject.firebaseVersion"
    implementation 'com.google.firebase:firebase-messaging:20.0.0'

    //LivePerson
    implementation ("com.liveperson.android:lp_messaging_sdk:3.9.0") {
        exclude group: "com.android.support", module: "support-v4"
    }

    // dependency injection
    implementation "com.google.dagger:dagger:$rootProject.dagger2Version"
    annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"

    //toasty
    implementation "com.github.GrenderG:Toasty:$rootProject.toastyVersion"

    //flashbar
    implementation 'com.andrognito.flashbar:flashbar:1.0.3'
    implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.41"

    // dependencies for local unit tests
    testImplementation "junit:junit:$rootProject.ext.junitVersion"

    implementation files('libs/commons-codec-1.10-rep.jar')

    // Add dependency
    implementation("com.crashlytics.sdk.android:crashlytics:$rootProject.crashlytics") {
        transitive = true
    }

    implementation('com.crashlytics.sdk.android:answers:1.4.7@aar') {
        transitive = true
    }

    // UI Testing
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
    implementation 'javax.inject:javax.inject:1'
    compileOnly 'javax.annotation:jsr250-api:1.0'
    implementation 'org.jetbrains:annotations:15.0'

}

apply plugin: 'com.google.gms.google-services'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant