Software Archive
Read-only legacy content
17061 Discussions

Error: A build error occurred. Check the build log.

Rizki_F_
Beginner
1,598 Views

Hi, I have problem when  I try to build my app with Intel XDK, I wannt to build my app as Android. what could the problem and how I fix it? I still beginner for this. this is the build log

Build Log:
Building a Cordova 5.1.1 application.
The application name is "GOHANGEUL"
The package name is "xdk.intel.blank.ad.template"
Plugin "cordova-plugin-legacy-whitelist" (1.1.0) installed.
App name updated to [GOHANGEUL]
Updated "minSdkVersion" with "14"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Updated "versionCode" to "1"
Updated "versionName" to "0.0.1"
Added "debuggable" to "false"
Error: A build error occurred. Check the build log.

 

0 Kudos
10 Replies
John_H_Intel2
Employee
1,598 Views

Do you have a link that provides you a detailed build log? Can you save that as a text file and attach it to this thread so we can see the entire build log?

0 Kudos
jesus_c_2
Beginner
1,598 Views

i have simil problem. Can you helpme?

0 Kudos
Wesley_S_2
Beginner
1,598 Views
 
I have the same problem , you can help me!!!!!!!!
 
  • Error: A build error occurred. Check the build log.
0 Kudos
PaulF_IntelCorp
Employee
1,598 Views

Jesus and Wesley -- please attach your detailed build logs as TXT files to your posts so we can see what is wrong.

0 Kudos
Jessé_V_
Beginner
1,598 Views

Estou com o seguinte erro:

A build error occurred. Check the build log

0 Kudos
PaulF_IntelCorp
Employee
1,598 Views

This is your problem:

Error Code: 42
Output: libpng error: Not a PNG file

You are using JPG files for your icons or splash screens. The Cordova CLI 5.1.1 build system only allows PNG images. JPG and PNG images were allowed for some platforms in the CLI 4.1.2 build system. Unfortunately, the Apache Cordova project changed that and now requires that they all be in PNG format.

0 Kudos
Carlos_Enrique_H_
1,598 Views

i have simil problem. Can you helpme?

 

 

 

0 Kudos
PaulF_IntelCorp
Employee
1,598 Views

Carlos, you cannot simply rename your files from *.jpg to *.png, you must convert them to PNG format using an image app. Please double-check to be sure your icon and splash screen image files are real PNG files and not just JPG files that have been renamed.

0 Kudos
Aleem_B_
Beginner
1,598 Views

I have a problem when i try to build my app as Android with Intel XDK.

This is Build Log error:

  • Building a Cordova 6.2.0 application.
  • Using platform cordova-android 5.1.1.
  • The application name is "AmliyatKayFazail"
  • The package name is "com.dfib.amliyat.kay.fazail"
  • Preference android-signed set to true. Application will be signed.
  • Plugin "cordova-plugin-statusbar" (2.1.3) installed.
  • Plugin "cordova-plugin-device" (1.1.2) installed.
  • Plugin "cordova-plugin-splashscreen" (3.2.2) installed.
  • Plugin "cordova-plugin-whitelist" (1.2.2) installed.
  • App name updated to [AmliyatKayFazail]
  • Updated "minSdkVersion" with "14"
  • Updated "targetSdkVersion" with "21"
  • Updated "installLocation" to "auto"
  • Updated "versionCode" to "1"
  • Updated "versionName" to "1.2.0"
  • Added "debuggable" to "false"
  • Error: A build error occurred. Check the build log. 

 

I also have attached a txt file link.

Can anyone tell me what is this problem and what is a solution for it.

Kindly help me, If anyone know about it.

0 Kudos
PaulF_IntelCorp
Employee
1,598 Views

This appears to be the core problem:

AAPT err(Facade for 1213882826) : No Delegate set : lost message:libpng error: Not a PNG file

Which is usually caused by trying to use a JPG file for an icon or splash screen. For example, if you had a JPG file that you renamed to a PNG file, you do not have a PNG, you just have a JPG that is named as a PNG. You must actually convert your JPG files to PNG files, renaming them is not sufficient.

Given that the XDK build system will be retired at the end of June (see the release notes), I recommend you use the "Cordova Build Package" tool and attempt to build with PhoneGap Build.

0 Kudos
Reply