Still need help!

Back to course
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13896

    Wiji Hatmoko
    Participant

    I create new app again, because the last app didn’t works.

    I have use this command: npm install ng2dragula dragula save

    but still like this when I test with command ionic serve

    http://prntscr.com/k9cxz1

    #13920

    Alex
    Keymaster

    Please open cmd and administrator if you work on windows.

    Navigate to your project folder and then try run these commands  :

    npm install [email protected] --force --save

     

    npm install [email protected] --force --save

    #13945

    Wiji Hatmoko
    Participant

    Thanks for your support.

    Now, when I use command : <span style=”background-color: #fafafa; color: #444444; font-family: Menlo, Monaco, Consolas, ‘Courier New’, monospace; font-size: 14.4px; white-space: pre-line;”>ionic cordova build –release android</span>

    At the end off process appear like this:

     

     

    FAILURE: Build failed with an exception.

     

    * What went wrong:

    Execution failed for task ‘:app:processReleaseResources’.

    > Failed to execute aapt

     

    * Try:

    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.

     

    * Get more help at https://help.gradle.org

     

    BUILD FAILED in 2m 33s

    at ChildProcess.whenDone (C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekiaapp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

    (node:9868) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

    (node:9868) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

     

     

    C:\Users\Wiji Hatmoko\Documents\Ionic\ciptacendekiaapp>

     

     

    #13958

    Alex
    Keymaster

    Take backup of all ionic setup then

     

    rename the node_modules folder in your ionic project (where src folder is) to node_modules_BACKUP and also rename the package.json file to package_BACKUP.json .

     

    then download the package.json file from here : https://bit.ly/2I2F732

     

    Then place it in your ionic project .

     

    Then in terminal of cmd run :

     

    npm install

     

    Then run this command in your ionic project :

     

    ionic cordova platform rm android

     

    ionic cordova platform add [email protected]

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.