Kaydet (Commit) 2ca4748a authored tarafından Christian Lohmaier's avatar Christian Lohmaier

add warning with install instructions when android build-tools are not found

Change-Id: I987262e4e9ae99c889285658fc9f840655d29191
üst 9af1331c
...@@ -848,6 +848,16 @@ if echo "$host_os" | grep -q linux-android ; then ...@@ -848,6 +848,16 @@ if echo "$host_os" | grep -q linux-android ; then
if test ! -d "$ANDROID_SDK_HOME/platforms"; then if test ! -d "$ANDROID_SDK_HOME/platforms"; then
AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK]) AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK])
fi fi
BUILD_TOOLS_VERSION=`$SED -n -e 's/.*buildToolsVersion "\(.*\)"/\1/p' $SRC_ROOT/android/source/build.gradle`
if test ! -d "$ANDROID_SDK_HOME/build-tools/$BUILD_TOOLS_VERSION"; then
AC_MSG_WARN([android build-tools $BUILD_TOOLS_VERSION not found - install with
$ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION
or adjust change $SRC_ROOT/android/source/build.gradle accordingly])
add_warning "android build-tools $BUILD_TOOLS_VERSION not found - install with"
add_warning " $ANDROID_SDK_HOME/tools/android update sdk -u --all --filter build-tools-$BUILD_TOOLS_VERSION"
add_warning "or adjust $SRC_ROOT/android/source/build.gradle accordingly"
fi
fi fi
if test "$_os" = "AIX"; then if test "$_os" = "AIX"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment