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

[android] cannot compile [email protected] #511

Closed
2 tasks done
gianpaj opened this issue Dec 4, 2018 · 6 comments
Closed
2 tasks done

[android] cannot compile [email protected] #511

gianpaj opened this issue Dec 4, 2018 · 6 comments

Comments

@gianpaj
Copy link

gianpaj commented Dec 4, 2018

OS:

  • MacOS

Platform:

  • Android
Output of node -v && npm -v && npm ls --prod --depth=0

v10.13.0
6.4.1
[email protected] /Users/gianfranco/temp/dec03
├── @pusher/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

react-native info

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 37.71 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 24, 25, 26, 27
        Build Tools: 20.0.0, 21.1.2, 22.0.1, 23.0.3, 25.0.3, 26.0.2, 27.0.0, 27.0.3, 28.0.2, 28.0.3
        System Images: android-22 | Google APIs Intel x86 Atom, android-24 | Intel x86 Atom, android-24 | Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom, android-25 | Android Wear ARM EABI v7a, android-25 | Android Wear Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1
      react-native: 0.57.7 => 0.57.7
    npmGlobalPackages:
      react-native-rename: 2.4.0


I have the following issue:

cannot compile Android RN build

Steps to reproduce:

react-native run-android

Actual result:

> Task :react-native-sentry:compileDebugJavaWithJavac FAILED
/Users/gianfranco/temp/dec03/node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java:247: error: cannot find symbol
            ReadableArray fingerprint = event.getArray("fingerprint");
            ^
  symbol:   class ReadableArray
  location: class RNSentryModule
/Users/gianfranco/temp/dec03/node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java:248: error: cannot find symbol
            ArrayList<String> print = new ArrayList<String>(fingerprint.size());
            ^
  symbol:   class ArrayList
  location: class RNSentryModule
/Users/gianfranco/temp/dec03/node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java:248: error: cannot find symbol
            ArrayList<String> print = new ArrayList<String>(fingerprint.size());
                                          ^
  symbol:   class ArrayList
  location: class RNSentryModule
Note: /Users/gianfranco/temp/dec03/node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FYI: I'm using Grade 4.6

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

/android/build.gradle

task wrapper(type: Wrapper) {
    gradleVersion = '4.6'
    distributionUrl = distributionUrl.replace("bin", "all")
}

Downgrading to v0.39.1 works:

@HazAT
Copy link
Member

HazAT commented Dec 4, 2018

Sorry, will check whats going on.

@tabfed
Copy link

tabfed commented Dec 4, 2018

me too

@HazAT
Copy link
Member

HazAT commented Dec 4, 2018

0.40.2 is on its way, sorry for any this may have caused inconvenience.

@HazAT HazAT closed this as completed Dec 4, 2018
@gianpaj
Copy link
Author

gianpaj commented Dec 4, 2018

thanks for the quick fix @HazAT.

I can confirm it compiles now 👍🙂

@mxmzb
Copy link

mxmzb commented Feb 5, 2019

I'm having this again on 0.41.1

@mutablestudio
Copy link

I'm also seeing the error ...RNSentryModule.java uses or overrides a deprecated API. when building a release build on Android Studio 3.3.1. Project is Expo detached w react-native-sentry 0.42.0.

rolling back to 0.40.2 fixes it.

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

5 participants