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

NDK warning on build #308

Open
shipit opened this issue Mar 24, 2021 · 1 comment
Open

NDK warning on build #308

shipit opened this issue Mar 24, 2021 · 1 comment

Comments

@shipit
Copy link

shipit commented Mar 24, 2021

When initiating a build on the command line, I am seeing a very old NDK warning. I have ndk-bundle installed. There is no local.properties file at project root. Log:

Android-CleanArchitecture git:(master) ./gradlew clean build
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
Configuration on demand is an incubating feature.

> Configure project :data
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 /Users/shipit/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
@s0ka
Copy link

s0ka commented May 4, 2022

It's same with me on Android Studio Bumblebee.
I fixed bottom files. Finally, I can build it.

  • build.gradle
    classpath 'com.android.tools.build:gradle:3.0.1'
to
    classpath 'com.android.tools.build:gradle:4.1.2'
  • data/build.gradle
apply plugin: 'me.tatarka.retrolambda'
to
//apply plugin: 'me.tatarka.retrolambda'
  • gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
  • buildsystem/dependencies.gradle
  androidBuildToolsVersion = "27.0.1"
to
  androidBuildToolsVersion = "29.0.2"
  • presentation/build.gradle
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
to
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8

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