A super detailed tutorial: springboot integrates mybatis plus>>>
Problem Description:
Android SDK and gradle environments have been installed and environment variables have been configured as follows:
Android environment
root@wangju-HP-348-G4:/home/wangju/Desktop/5i5j_android/AppFrameWork# adb version
Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /usr/local/android-home/android-sdk-linux/platform-tools/adb
Gradle environment:
root@wangju-HP-348-G4:/home/wangju/Desktop/5i5j_android/AppFrameWork# gradle -version
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_211 (Oracle Corporation 25.211-b12)
OS: Linux 4.15.0-72-generic amd64
When executing gradle clean/tasks command in the app directory of Android project, the following error will be reported:
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
> Must apply 'com.android.application' first!
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
solutions:
According to the error prompt
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
If you can’t find the SDK, you can define Android in the local. Properties file_ Home, which indicates the location of Android SDK
Create a new local.properties file in the app directory, as shown below:
/Usr/local/Android home/Android SDK Linux is the installation directory of my android SDK
sdk.dir=/usr/local/android-home/android-sdk-linux
gradle clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean clean
Full text:
https://blog.csdn.net/cocos2dx_3_0/article/details/51235732