Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: When exporting android java.lang.NullPointerException  (Read 459 times)

0 Members and 1 Guest are viewing this topic.

MrRedux

  • Guest
When exporting android java.lang.NullPointerException
« on: September 05, 2022, 11:14:22 pm »
Quote
C:\dev\cpp\SFMLandroid\SFML\examples\android>gradle build

> Configure project :app
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\android-ndk.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUĀ¦LD FAILED in 965ms

C:\dev\cpp\SFMLandroid\SFML\examples\android>

I'm having this error when running
Quote
gradle build

https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android

I followed this page and did everything correctly in correct order. But it does not work.

 

anything