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

java.lang.noSuchMethodError #58

Open
aleksbgs opened this issue Feb 5, 2019 · 15 comments
Open

java.lang.noSuchMethodError #58

aleksbgs opened this issue Feb 5, 2019 · 15 comments
Assignees

Comments

@aleksbgs
Copy link

aleksbgs commented Feb 5, 2019

No description provided.

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

Hey @aleksbgs,

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

@aleksbgs
Copy link
Author

aleksbgs commented Feb 5, 2019

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

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

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 weeeBox self-assigned this Feb 5, 2019
@aleksbgs
Copy link
Author

aleksbgs commented Feb 5, 2019

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
Copy link
Author

aleksbgs commented Feb 5, 2019

it's working good on ios

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

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

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

Apptentive SDK requires 28 to function properly.

@aleksbgs
Copy link
Author

aleksbgs commented Feb 5, 2019

targetSdkVersion 28 crash again

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

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'
}

@aleksbgs
Copy link
Author

aleksbgs commented Feb 5, 2019

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
Copy link
Author

aleksbgs commented Feb 5, 2019

i add also this into androidmanifest

screen shot 2019-02-05 at 10 54 13 pm

@weeeBox
Copy link
Contributor

weeeBox commented Feb 5, 2019

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

@aleksbgs
Copy link
Author

aleksbgs commented Feb 6, 2019

any suggestion ?
Apptentive.presentMessageCenter() crash

@weeeBox
Copy link
Contributor

weeeBox commented Feb 6, 2019

Is the stack trace the same?

@aleksbgs
Copy link
Author

aleksbgs commented Feb 6, 2019

yes same

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

2 participants