![]() Running command: D:\tanwar\ionic\testing1\platforms\android\cordova\build.batĪNDROID_HOME=D:\Installed\Android\android-sdk Running command: D:\Installed\nodejs\node.exe D:\tanwar\ionic\testing1\hooks\after_prepare\010_add_platform_class.js D:\tanwar\ionic\testing1 Updated the hooks directory to have execute permissions I just started with ionic and facing issues with building ionic.Ĭommand: ionic build android (from project dir)ĭ:\tanwar\ionic\testing1>ionic build android I just assumed that you used eclipse because when you download the android sdk bundle, it comes with eclipse But i’ve heard that both of them are great. ![]() Ionic is build on top of cordova, but we never know, right? (re)install cordova by typing sudo npm install -g cordova (sudo required because you are on ubuntu), create a new project cordova create hello HelloWorld, and put there all your code.Ĭordova platform add android, cordova build android and cordova emulate android in that order. Instead of using ionic platform add, ionic build android and ionic emulate, follow the exact same steps that you’ve done in your previous post but using cordova. If it still fails this way, we migh be fucked, but there are one last shot worth the try. If it still fails, just create a new project without any plugins (you can see the plugins of your code in CLI typing: cordova plugins ls and remove them by typing cordova plugins rm plugin-name ![]() And then you can delete parts of your app until it works again. If it works, we know that the issues are on javascript. Just a plain index.html hello world file. But at least I can give you two suggestions and let’s see what happens.įirst, try to emulate your app without any of your javascript or HTML code. ![]() Please see console for more info.Īt this point i dont know if i can be useful to you. home/charles/adt-bundle/sdk/tools/ant/build.xml:698: null returned: 1Įrror code 1 for command: ant with args: debug,-f,/home/charles/WebstormProjects/aoapp/platforms/android/build.xml,-Dout.dir=ant-build,=ant-genĮrror: /home/charles/WebstormProjects/aoapp/platforms/android/cordova/build: Command failed with exit code 2Īt ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)Īt Process.ChildProcess._handle.onexit (child_process.js:822:5)ĮRROR: Unable to build app on platform android. home/charles/adt-bundle/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: home/charles/WebstormProjects/aoapp/platforms/android/res/xml/config.xml:33: error: Error parsing XML: unbound prefix Updating property file: /home/charles/WebstormProjects/aoapp/platforms/android/CordovaLib/ant-build/build.prop Library project: do not package resources. To destination dir: /home/charles/WebstormProjects/aoapp/platforms/android/CordovaLib/ant-build/res Crunching PNG Files in source dir: /home/charles/WebstormProjects/aoapp/platforms/android/CordovaLib/res Library project: do not convert bytecode. No changes in the AndroidManifest files. Resolving Dependencies for AlphaOmegaInternationalDentalFraternity. Created dir: /home/charles/WebstormProjects/aoapp/platforms/android/ant-build/rsLibs Created dir: /home/charles/WebstormProjects/aoapp/platforms/android/ant-build/rsObj Resolving Build Target for AlphaOmegaInternationalDentalFraternity. Project Name: AlphaOmegaInternationalDentalFraternity Installed at /home/charles/adt-bundle/sdk Could not load definitions from resource emma_ant.properties. Running command: /home/charles/WebstormProjects/aoapp/platforms/android/cordova/buildīuildfile: /home/charles/WebstormProjects/aoapp/platforms/android/build.xml I’ve included my entire console output for reference, but the failed build info is at the very bottom. I am on UBUNTU 14.04 can successfully add the android platform, but it fails right at the end of the build, in the post build section. I have spent hours trying to get this fixed and looked at all the feedback but nothing has really helped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |