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

I cannot build this, how to fix ? #4

Open
renetik opened this issue Aug 6, 2020 · 4 comments
Open

I cannot build this, how to fix ? #4

renetik opened this issue Aug 6, 2020 · 4 comments

Comments

@renetik
Copy link

renetik commented Aug 6, 2020

I get error when opened in Android Studio:

Unable to find method 'org.gradle.api.file.ProjectLayout.directoryProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/DirectoryProperty;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

I tried all solution proposed by AndroidStudio but nothing works...

@adamhs1997
Copy link

adamhs1997 commented Aug 14, 2020

It appears that this project won't build with the newest version of Gradle. I was using version 6.1.1 under Android Studio 4.0. I randomly switched it to 5.6.2 and that appeared to work.

You can change this in your gradle-wrapper.properties file. Change the distributionUrl line to distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip. See https://stackoverflow.com/a/42622353.

@paulorrfilho
Copy link

I changed the gradle version to classpath 'com.android.tools.build:gradle:4.0.0' and it worked for me.

@renetik-software
Copy link

I was able to build and run it by by setting ndk version in build gradle :

 android {
    compileSdkVersion 30
    ndkVersion '22.1.7171670'

and adding #include "assert.h" to AudioEngine.cpp

@hpsaturn
Copy link

hpsaturn commented Nov 7, 2023

I fixed some issues and also release two pull requests to improve the sample, regarding to have the last version of the libraries some Kotlin migrations and fixed some minors issues.

The fork of this PRs is here:
https://github.com/hpsaturn/oboe_recorder_sample/

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