android10 / Android-CleanArchitecture

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NDK warning on build

shipit opened this issue · 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.

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