我正在尝试在Linux中构建android for ionic但是它向我显示了这样的错误
[Error: Failed to find 'ANDROID_HOME' environment variable.
Try setting setting it manually.
Failed to find 'android' command in your 'PATH'.
Try update your 'PATH' to include path to valid SDK directory.]
ERROR building one of the platforms: Error: /home/kumar/myapp/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /home/kumar/myapp/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit …Run Code Online (Sandbox Code Playgroud) 我在角度调用使用ajax调用的PHP编写的值表单文件,代码是..
var occurence = $http({
url:'getSelectFields_api.php',
method: GET,
params:{"api":"TRUE",
"functionName" : "getFields" ,
"field_id":"occur",
"list_id":"occurrence",
"empty_title":"SKIP",
"data_type":1,}
}).success(function(data){
$scope.occurences =data;
console.log(occurences);
});
Run Code Online (Sandbox Code Playgroud)
在控制台我得到的是'GET未定义......'请指导我..谢谢...