apptentive-react-native icon indicating copy to clipboard operation
apptentive-react-native copied to clipboard

java.lang.noSuchMethodError

Open aleksbgs opened this issue 7 years ago • 15 comments

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

Hey @aleksbgs,

Can you provide a complete stacktrace along with your package.json file contents?

weeeBox avatar Feb 05 '19 21:02 weeeBox

screen shot 2019-02-05 at 10 22 34 pm "apptentive-react-native": "5.3.1", "react-native": "0.51.0",

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

Thanks, can you also provide the content of your build.gradle file? We need to know you support libraries versions and your target sdk

weeeBox avatar Feb 05 '19 21:02 weeeBox

android { compileSdkVersion 26 buildToolsVersion '26.1.0'

defaultConfig {
    applicationId ""
    minSdkVersion 23
    targetSdkVersion 26

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 incremental = false; //If you see any build issues, try uncommenting this line development phases. Do not commit this line uncommented } configurations.all { resolutionStrategy.force 'com.android.support:support-v4:26.1.0' } dependencies { compile project(':react-native-mail') compile project(':react-native-shake') compile project(':react-native-image-crop-picker') // Already in this file -- compile project(':react-native-firebase') compile project(':apptentive-react-native')

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

it's working good on ios

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

Would you be able to update your target sdk version to 28?

weeeBox avatar Feb 05 '19 21:02 weeeBox

Apptentive SDK requires 28 to function properly.

weeeBox avatar Feb 05 '19 21:02 weeeBox

targetSdkVersion 28 crash again

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

Sorry, I should've been more specific:

compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
    targetSdkVersion 28
}
configurations.all {
  resolutionStrategy.force 'com.android.support:support-v4:28.0.0'
}

weeeBox avatar Feb 05 '19 21:02 weeeBox

sorry i am frustrate with versions so i change this configurations.all { resolutionStrategy.force 'com.android.support:support-v4:26.1.0' } into this configurations.all { resolutionStrategy.force 'com.android.support:support-v4:28.0.0' } i have other errors :) screen shot 2019-02-05 at 10 52 13 pm

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

i add also this into androidmanifest screen shot 2019-02-05 at 10 54 13 pm

aleksbgs avatar Feb 05 '19 21:02 aleksbgs

Sorry for the issue. I've created a ticket and we'll look at it soon.

weeeBox avatar Feb 05 '19 21:02 weeeBox

any suggestion ? Apptentive.presentMessageCenter() crash

aleksbgs avatar Feb 06 '19 18:02 aleksbgs

Is the stack trace the same?

weeeBox avatar Feb 06 '19 19:02 weeeBox

yes same

aleksbgs avatar Feb 06 '19 19:02 aleksbgs