{"action":"created","issue":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1010","labels_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1010/comments","events_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1010/events","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1010","id":78576235,"number":1010,"title":"Ionic build fails with Cordova 5.x+ (gradle)","user":{"login":"tonymke","id":394592,"avatar_url":"https://avatars.githubusercontent.com/u/394592?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymke","html_url":"https://github.com/tonymke","followers_url":"https://api.github.com/users/tonymke/followers","following_url":"https://api.github.com/users/tonymke/following{/other_user}","gists_url":"https://api.github.com/users/tonymke/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymke/subscriptions","organizations_url":"https://api.github.com/users/tonymke/orgs","repos_url":"https://api.github.com/users/tonymke/repos","events_url":"https://api.github.com/users/tonymke/events{/privacy}","received_events_url":"https://api.github.com/users/tonymke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T15:43:48Z","updated_at":"2015-05-21T19:50:36Z","closed_at":null,"body":"In Cordova 5, build tool was changed from ant to gradle.\r\n\r\nLooks like some of the images don't get moved properly in an ionic project because of this. Not sure if the build works building in a native cordova 5.0 project - will test.\r\n\r\n**Environment:**\r\n* Windows 8 x64\r\n* Java 8.20 x64\r\n* Cordova 5.0.0\r\n* Ionic 1.4.4\r\n* Android 22 SDK/build tools\r\n\r\n**Steps:**\r\n* add android platform `ionic platform add android`\r\n* add plugin `ionic plugin add git@github.com:Wizcorp/phonegap-facebook-plugin.git --variable APP_ID=\"id\" --variable APP_NAME=\"name\" --save`\r\n* attempt to build for android `ionic build android`\r\n\r\n**Workaround:**\r\nRoll back to cordova 4.x\r\n```\r\nnpm uninstall -g cordova ionic\r\nnpm install -g cordova@4.4.0 ionic\r\n```\r\n\r\n\r\n**Console output**\r\n\r\n```\r\n\u001B[32mUpdated the hooks directory to have execute permissions\u001B[39m\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-ldpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-mdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-hdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-xhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-xxhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-land-xxxhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-ldpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-mdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-hdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-xhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-xxhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\splash\\drawable-port-xxxhdpi-screen.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-ldpi-icon.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-mdpi-icon.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-hdpi-icon.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-xhdpi-icon.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-xxhdpi-icon.png\r\n\r\ncp: no such file or directory: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\resources\\android\\icon\\drawable-xxxhdpi-icon.png\r\n\r\nRunning command: \"C:\\Program Files\\nodejs\\node.exe\" C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\hooks\\after_prepare\\010_add_platform_class.js C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\r\nadd to body class: platform-android\r\nRunning command: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\cordova\\build.bat \r\nANDROID_HOME=C:\\Users\\Tony\\AppData\\Local\\Android\\sdk\r\nJAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_20\r\nRunning: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\gradlew cdvBuildDebug -b C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\build.gradle -Dorg.gradle.daemon=true\r\n:preBuild\r\n\r\n:compileDebugNdk UP-TO-DATE\r\n\r\n:preDebugBuild\r\n\r\n:checkDebugManifest\r\n\r\n:CordovaLib:compileLint\r\n\r\n:CordovaLib:copyDebugLint UP-TO-DATE\r\n\r\n:CordovaLib:mergeDebugProguardFiles UP-TO-DATE\r\n\r\n:CordovaLib:preBuild\r\n\r\n:CordovaLib:preDebugBuild\r\n\r\n:CordovaLib:checkDebugManifest\r\n\r\n:CordovaLib:prepareDebugDependencies\r\n\r\n:CordovaLib:compileDebugAidl UP-TO-DATE\r\n\r\n:CordovaLib:compileDebugRenderscript UP-TO-DATE\r\n\r\n:CordovaLib:generateDebugBuildConfig UP-TO-DATE\r\n\r\n:CordovaLib:generateDebugAssets UP-TO-DATE\r\n\r\n:CordovaLib:mergeDebugAssets UP-TO-DATE\r\n\r\n:CordovaLib:generateDebugResValues UP-TO-DATE\r\n\r\n:CordovaLib:generateDebugResources UP-TO-DATE\r\n\r\n:CordovaLib:packageDebugResources UP-TO-DATE\r\n\r\n:CordovaLib:processDebugManifest UP-TO-DATE\r\n\r\n:CordovaLib:processDebugResources UP-TO-DATE\r\n\r\n:CordovaLib:generateDebugSources UP-TO-DATE\r\n\r\n:CordovaLib:compileDebugJava UP-TO-DATE\r\n\r\n:CordovaLib:processDebugJavaRes UP-TO-DATE\r\n\r\n:CordovaLib:packageDebugJar UP-TO-DATE\r\n\r\n:CordovaLib:compileDebugNdk UP-TO-DATE\r\n\r\n:CordovaLib:packageDebugJniLibs UP-TO-DATE\r\n\r\n:CordovaLib:packageDebugLocalJar UP-TO-DATE\r\n\r\n:CordovaLib:packageDebugRenderscript UP-TO-DATE\r\n\r\n:CordovaLib:bundleDebug UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:compileLint\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:copyDebugLint UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:mergeDebugProguardFiles UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:preBuild\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:preDebugBuild\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:checkDebugManifest\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:preDebugTestBuild\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:prepareDebugDependencies\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:compileDebugAidl UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:compileDebugRenderscript UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:generateDebugBuildConfig UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:generateDebugAssets UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:mergeDebugAssets UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:generateDebugResValues UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:generateDebugResources UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:mergeDebugResources UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:processDebugManifest UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:processDebugResources UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:generateDebugSources UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:compileDebugJava UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:processDebugJavaRes UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:packageDebugJar UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:compileDebugNdk UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:packageDebugJniLibs UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:packageDebugLocalJar UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:packageDebugRenderscript UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:packageDebugResources UP-TO-DATE\r\n\r\n:com.phonegap.plugins.facebookconnect:riderrewards287606-FacebookLib:bundleDebug UP-TO-DATE\r\n\r\n:prepareAndroidComPhonegapPluginsFacebookconnectRiderrewards287606FacebookLibUnspecifiedDebugLibrary UP-TO-DATE\r\n\r\n:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE\r\n\r\n:prepareDebugDependencies\r\n\r\n:compileDebugAidl UP-TO-DATE\r\n\r\n:compileDebugRenderscript UP-TO-DATE\r\n\r\n:generateDebugBuildConfig UP-TO-DATE\r\n\r\n:generateDebugAssets UP-TO-DATE\r\n\r\n:mergeDebugAssets UP-TO-DATE\r\n\r\n:generateDebugResValues UP-TO-DATE\r\n\r\n:generateDebugResources UP-TO-DATE\r\n\r\n:mergeDebugResources\r\n\r\nError: Failed to run command:\r\n\tC:\\Users\\Tony\\AppData\\Local\\Android\\sdk\\build-tools\\22.0.1\\aapt.exe s -i C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\build\\intermediates\\exploded-aar\\android.com.phonegap.plugins.facebookconnect\\riderrewards287606-FacebookLib\\unspecified\\debug\\res\\drawable-xxhdpi-v4\\com_facebook_button_like_background_selected.png -o C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\build\\intermediates\\res\\debug\\drawable-xxhdpi-v4\\com_facebook_button_like_background_selected.png\r\nError Code:\r\n\t42\r\nOutput:\r\n\tC:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\build\\intermediates\\exploded-aar\\android.com.phonegap.plugins.facebookconnect\\riderrewards287606-FacebookLib\\unspecified\\debug\\res\\drawable-xxhdpi-v4\\com_facebook_button_like_background_selected.png ERROR: Unable to open PNG file\r\n\r\n\r\n:mergeDebugResources FAILED\r\n\r\n\r\n\r\nBUILD FAILED\r\n\r\n\r\n\r\nTotal time: 2.981 secs\r\n\r\nERROR building one of the platforms: Error: C:\\Users\\Tony\\dev\\mobile.ionic.riderrewards\\platforms\\android\\cordova\\build.bat: Command failed with exit code 1\r\nYou may not have the required environment or OS to build this project\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/comments/104401717","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1010#issuecomment-104401717","issue_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/1010","id":104401717,"user":{"login":"Chuxel","id":312252,"avatar_url":"https://avatars.githubusercontent.com/u/312252?v=3","gravatar_id":"","url":"https://api.github.com/users/Chuxel","html_url":"https://github.com/Chuxel","followers_url":"https://api.github.com/users/Chuxel/followers","following_url":"https://api.github.com/users/Chuxel/following{/other_user}","gists_url":"https://api.github.com/users/Chuxel/gists{/gist_id}","starred_url":"https://api.github.com/users/Chuxel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chuxel/subscriptions","organizations_url":"https://api.github.com/users/Chuxel/orgs","repos_url":"https://api.github.com/users/Chuxel/repos","events_url":"https://api.github.com/users/Chuxel/events{/privacy}","received_events_url":"https://api.github.com/users/Chuxel/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T19:50:36Z","updated_at":"2015-05-21T19:50:36Z","body":"This also repros with a basic Cordova CLI project when using Ant in 5.0.0 so it is likely 5.0.0 specific, not Gradle specific.\r\n\r\n~~~~~~~~~~~~~~\r\nnpm install -g cordova@5.0.0\r\ncordova plugin add com.phonegap.plugins.facebookconnect --variable  APP_ID=123 --variable APP_NAME=nbaer\r\ncordova platform add android\r\ncordova build android\r\ncordova build android -- --ant\r\n~~~~~~~"}}