Android-CleanArchitecture icon indicating copy to clipboard operation
Android-CleanArchitecture copied to clipboard

NDK warning on build

Open shipit opened this issue 4 years ago • 1 comments

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.

shipit avatar Mar 24 '21 00:03 shipit

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

s0ka avatar May 04 '22 08:05 s0ka