ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
192 stars 187 forks source link

Cannot build android #376

Open benag opened 6 years ago

benag commented 6 years ago

Short description of the problem:

I cannot build android project build fails without errors , if i issue cordova build it also fails.

What behavior are you expecting?

build succeed apk created

Steps to reproduce:

  1. ionic cordova build android
insert any relevant code between the above and below backticks

ben@ben-Latitude-E5550:~/projects/ganim/ganim-mobile$ ionic cordova build android --verbose [DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND [DEBUG] CLI flags: { interactive: true, confirm: false } [DEBUG] { cwd: '/home/ben/projects/ganim/ganim-mobile', local: false, binPath: '/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules/ionic/bin/ionic', libPath: '/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules/ionic/dist/index.js' } [DEBUG] Daemon found (pid: 18117) [DEBUG] Missing ionic:build:before gulp task. [DEBUG] Invoking sass gulp task. [DEBUG] Missing ionic:build:after gulp task.

cordova build android Android Studio project detected

Running command: /home/ben/projects/ganim/ganim-mobile/hooks/after_prepare/010_add_platform_class.js /home/ben/projects/ganim/ganim-mobile

(node:20012) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid data, chunk must be a string or buffer, not object (node:20012) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handledwill terminate the Node.js process with a non-zero exit code.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Which Ionic Version? 1.x or 2.x 1.x

Plunker that shows an example of your issue

For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview

For Ionic 2 issues - http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview

Run ionic info from terminal/cmd prompt: (paste output below)

cli packages: (/home/ben/.nvm/versions/node/v8.6.0/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

Cordova Platforms : android 7.0.0
Ionic Framework   : ionic1 1.3.3

System:

Android SDK Tools : 25.2.5
Node              : v8.6.0
npm               : 5.3.0
OS                : Linux 4.4

Environment Variables:

ANDROID_HOME : /home/ben/Android/Sdk

Misc:

backend : pro
heooon commented 5 years ago

I am having the same issue. Did you find any solution?