小编Kum*_*ndi的帖子

Ionic android build Error - 无法找到'ANDROID_HOME'环境变量

我正在尝试在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)

linux android cordova ionic-framework ionic

51
推荐指数
7
解决办法
13万
查看次数

GET没有定义

我在角度调用使用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未定义......'请指导我..谢谢...

javascript php rest http angularjs

0
推荐指数
1
解决办法
1974
查看次数

标签 统计

android ×1

angularjs ×1

cordova ×1

http ×1

ionic ×1

ionic-framework ×1

javascript ×1

linux ×1

php ×1

rest ×1