monacaでAndroidアプリをビルドする時にエラーが出てbuildが出来ません。
Temporary folder: /private/tmp/monaca/5962156b803451702ec83be6
Downloading project
Download complete
Running for 5.2
plugin add mobi.monaca.plugins.Monaca
No ALTQ support in kernel
ALTQ related functions disabled
pfctl: pf already enabled
Fetching plugin "mobi.monaca.plugins.Monaca" via npm
Installing "mobi.monaca.plugins.Monaca" for android
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
plugin add cordova-plugin-whitelist@1.0.0
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Fetching plugin "cordova-plugin-whitelist@1.0.0" via npm
Installing "cordova-plugin-whitelist" for android
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
plugin add cordova-plugin-splashscreen@2.1.0
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Fetching plugin "cordova-plugin-splashscreen@2.1.0" via npm
Installing "cordova-plugin-splashscreen" for android
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
plugin add cordova-plugin-inappbrowser@1.0.1
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Fetching plugin "cordova-plugin-inappbrowser@1.0.1" via npm
Installing "cordova-plugin-inappbrowser" for android
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
plugin add cordova-plugin-media@1.0.1
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Fetching plugin "cordova-plugin-media@1.0.1" via npm
Installing "cordova-plugin-media" for android
Fetching plugin "cordova-plugin-file" via npm
Installing "cordova-plugin-file" for android
Fetching plugin "cordova-plugin-compat" via npm
Installing "cordova-plugin-compat" for android
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
plugin add cordova-plugin-dialogs@1.1.1
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Fetching plugin "cordova-plugin-dialogs@1.1.1" via npm
Installing "cordova-plugin-dialogs" for android
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
Project has 6 plugins.
8 plugins has been installed.
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Running command: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/hooks/after_prepare/monaca_enterprise_android.js /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
No ALTQ support in kernel
ALTQ related functions disabled
pf enabled
Running command: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/cordova/build --release
ANDROID_HOME=/Applications/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
Running: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/gradlew cdvBuildRelease -b /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/build.gradle -Dorg.gradle.daemon=true
:preBuild
:preReleaseBuild
:checkReleaseManifest
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:preBuild
:CordovaLib:preReleaseBuild
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:compileReleaseJava
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:packageReleaseJar
:CordovaLib:compileReleaseNdk
:CordovaLib:packageReleaseJniLibs UP-TO-DATE
:CordovaLib:packageReleaseLocalJar UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:bundleRelease
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues
:generateReleaseResources
libpng error: Not a PNG file
libpng error: Not a PNG file
libpng error: Not a PNG file
:mergeReleaseResources
Error: Failed to run command:
/Applications/android-sdk-macosx/build-tools/23.0.1/aapt s -i /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/res/drawable-port-xhdpi/screen.png -o /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/build/intermediates/res/release/drawable-port-xhdpi-v4/screen.png
Error Code:
42
Output:
libpng error: Not a PNG file
libpng error: Not a PNG file
:mergeReleaseResources FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':mergeReleaseResources'.
Error: Failed to run command:
/Applications/android-sdk-macosx/build-tools/23.0.1/aapt s -i /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/res/drawable-port-xhdpi/screen.png -o /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/build/intermediates/res/release/drawable-port-xhdpi-v4/screen.png
Error Code:
42
Output:
libpng error: Not a PNG file
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.557 secs
/private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/gradlew with args: cdvBuildRelease,-b,/private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /private/tmp/monaca/5962156b803451702ec83be6/android/skeleton/platforms/android/cordova/build: Command failed with exit code 8
at ChildProcess.whenDone (/data/monaca_build_module/5.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)
Build error: Error building project source code
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。