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.NullPointerException in Metadata generator #1379

Closed
vtrifonov opened this issue May 27, 2019 · 2 comments
Closed

java.lang.NullPointerException in Metadata generator #1379

vtrifonov opened this issue May 27, 2019 · 2 comments
Assignees
Milestone

Comments

@vtrifonov
Copy link
Contributor

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.4.0
  • Cross-platform modules: 5.4.0
  • Android Runtime: 5.4.0
  • Plugin(s):
    • nativescript-image: 2.1.3

Describe the bug
Seems that with the latest gradle version it may happen that not all the dependencies are found and you can get java.lang.NullPointerException in Metadata generator. This can be easily reproduced by adding nativescript-image plugin to the app.

To Reproduce

tns create test --js
cd test
tns plugin add nativescript-image
tns build android

The build won't fail, but some errors will be shown:

Skip com.facebook.animated.gif.GifFrame
        Error: java.lang.NullPointerException
Skip com.facebook.animated.gif.GifImage
        Error: java.lang.NullPointerException

which may result in runtime errors

Expected behavior
All the dependencies should be resolved and the build shouldn't show the errors above.

Additional context
The above problem disappears if you are using gradle version 4.10.2 instead

@meysam-mahmoodi
Copy link

I have the same issue. what should I do?
@vtrifonov do u have the issue yet?

@vtrifonov
Copy link
Contributor Author

@meysam-mahmoodi which version of tns-android are you using as this should be fixed with 6.0 release. Do you have any errors during runtime or you just see this while building?

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

3 participants