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

Can't get started #699

Open
stevebroshar opened this issue Feb 2, 2024 · 1 comment
Open

Can't get started #699

stevebroshar opened this issue Feb 2, 2024 · 1 comment

Comments

@stevebroshar
Copy link

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 :(

@equationl
Copy link

equationl commented Aug 8, 2024

You need update com.android.tools.build:gradle:3.1.4' at build.gradle file in root project too.

For exomple, I updated to:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
//		google()
		maven { url 'https://maven.google.com' }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.4'
    }
}

It's work for me.

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