saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.96k stars 1.19k forks source link

Can't get started #699

Open stevebroshar opened 5 months ago

stevebroshar commented 5 months ago

Pulled code. Tried to build with on command line per readme, but get error "Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain"

Opened in latest version of Android Studio. As with any project that I open for the first time, Android Studio errors: The project uses Gradle 4.4 which is incompatible with Java 11 or newer. Possible solution: Upgrade Gradle wrapper to 7.2 version and re-import the project

So, I select the option to upgrade the wrapper to 7.2. I think that completed. Then I get this error:

A problem occurred configuring project ':libuvccamera'.

java.lang.NullPointerException (no error message)

  • Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':libuvccamera'. at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:75) (it's a SUPER long call stack)

No idea how to fix. Honestly, this sort of thing happens with every project that pull and try to build locally. Android is so picky about building :(