Skip to content Skip to sidebar Skip to footer

Android Kochava Sdk Integration Crashes The App With Google Sdk

I just integrated Kochava SDK to my app recently. While I installing or running apk first time its crashed, but its working fine while running second time! However I also checked b

Solution 1:

Well if you have more than one module in your app then put all Kochava dependencies in all of those module :

implementation 'com.kochava.base:tracker:3.6.3'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'com.android.installreferrer:installreferrer:1.0'

These all must be in all module level gradle files. This is not mentioned is in documentation but you can try it. Because I tried your code in my application and I also have Google ads and other Google's libraries and also have three modules in my app. But added these libraries in all modules than its work perfectly!

I don't know if you have more than one module in your app but if there is than this will helpful.

Solution 2:

EDIT

It has been fixed by google, on the same version...

It should work now, if it's still crashing it's probably linked to the previous version being cached, the following should fix it:

implementation('com.android.installreferrer:installreferrer:1.1') { changing .= true}

More information here: https://github.com/adjust/android_sdk/issues/402


Try with com.android.installreferrer:installreferrer:1.0 instead of 1.1

Looks like IGetInstallReferrerService expects com.google.android.aidl.BaseStub in the 1.1 implementation, which does not come with installreferrer

Solution 3:

mVck is correct and as far as we can tell, it's likely on Google's end and looks to be specific to version 1.1 of their library. This is our theory because it appears others on SO are experiencing similar issues with other vendor SDKs.

We've reached out to our Google reps to confirm, but in the meantime, please stay on version 1.0 of Google's library as indicated above. Once we receive confirmation we'll be sure and update our support documentation. Thanks!

Solution 4:

I just ran into the same thing and what fixed it for me was to delete the install referrer dependency from my gradle cache and then re-sync with gradle. I think it was something to do with the cached aar. It's bizarre though because it was fine earlier this week and the aar didn't change as far as I'm aware. Regardless, deleting it and re-syncing did the trick for me.

Solution 5:

I was having trouble downgrading to 1.0 after attempting to fix this issue with the 1.1.1 fix. In my case the installreferrer was adding the permission READ_PHONE_STATE to my application. Gradle was attempting to resolve 1.1 even after I backed down the version to 1.0 in my app.gradle.

In order to fix this I now force installreferrer to use version 1.0.

dependencies {
    configurations.all {
        resolutionStrategy.force 'com.android.installreferrer:installreferrer:1.0'
    }

    implementation 'com.android.installreferrer:installreferrer:1.0'
}

Post a Comment for "Android Kochava Sdk Integration Crashes The App With Google Sdk"