You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2018/12/14 07:05:58 UTC
[incubator-weex] branch master updated: * [Android] (gradle build)
nullPoint fix for ndk.dir check - issue:
https://github.com/apache/incubator-weex/issues/1907
This is an automated email from the ASF dual-hosted git repository.
zshshr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 3a43744 * [Android] (gradle build) nullPoint fix for ndk.dir check - issue: https://github.com/apache/incubator-weex/issues/1907
3a43744 is described below
commit 3a43744bde6f21ebd75e2964d275b7233a2372c1
Author: zhongcang <qh...@gmail.com>
AuthorDate: Fri Dec 14 14:57:56 2018 +0800
* [Android] (gradle build) nullPoint fix for ndk.dir check
- issue: https://github.com/apache/incubator-weex/issues/1907
---
android/sdk/build.gradle | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 31f2625..77f0b32 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -250,6 +250,11 @@ task checkNdkVersion() {
ndkDir = properties.getProperty('ndk.dir')
}
+ if(null == ndkDir){
+ def errMsg ='please set ndk.dir path in project/local.properties and ndk-16 supported only,example: ndk.dir=/Users/xxx/Library/Android/sdk/ndk-bundle-r16'
+ throw new StopActionException(errMsg)
+ }
+
if(!ndkDir.isEmpty()) {
def sourcePropertiesFile = new File(ndkDir,"source.properties")
def ndkVersion = ''