Software Archive
Read-only legacy content
17061 Discussions

The build failed.Why?

fu_x_
Beginner
892 Views

I'm create Test Project by XDK.But  The  bulid  failed for android,Why?

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • Building a Cordova 3.3 application.
  • The application name is "XDKTest"
  • The package name is "not.yet.specified"
  • Plugin "Accelerometer" (org.apache.cordova.device-motion) installed.
  • Plugin "Camera" (org.apache.cordova.camera) installed.
  • Plugin "Capture" (org.apache.cordova.media-capture) installed.
  • Plugin "Compass" (org.apache.cordova.device-orientation) installed.
  • Plugin "Connection" (org.apache.cordova.network-information) installed.
  • Plugin "Contacts" (org.apache.cordova.contacts) installed.
  • Plugin "Device" (org.apache.cordova.device) installed.
  • Plugin "Events (battery status)" installed.
  • Plugin "File" (org.apache.cordova.file) installed.
  • Plugin "Geolocation" (org.apache.cordova.geolocation) installed.
  • Plugin "Globalization" (org.apache.cordova.globalization) installed.
  • Plugin "In App Browser" (org.apache.cordova.inappbrowser) installed.
  • Plugin "Media" (org.apache.cordova.media) installed.
  • Plugin "Dialogs (notification)" (org.apache.cordova.dialogs) installed.
  • Plugin "Vibration (notification)" (org.apache.cordova.vibration) installed.
  • Plugin "SplashScreen" (org.apache.cordova.splashscreen) installed.
  • Plugin "Accelerometer" (intel.xdk.accelerometer) installed.
  • Plugin "Audio" (intel.xdk.audio) installed.
  • Plugin "Base" (intel.xdk.base) installed.
  • Plugin "Cache" (intel.xdk.cache) installed.
  • Plugin "Camera" (intel.xdk.camera) installed.
  • Plugin "Contacts" (intel.xdk.contacts) installed.
  • Plugin "Device" (intel.xdk.device) installed.
  • Plugin "Display" (intel.xdk.display) installed.
  • Plugin "Facebook" (intel.xdk.facebook) installed.
  • Plugin "File" (intel.xdk.file) installed.
  • Plugin "Geolocation" (intel.xdk.geolocation) installed.
  • Plugin "Notification" (intel.xdk.notification) installed.
  • Plugin "Player" (intel.xdk.player) installed.
  • Updated "debuggable" to "false"
0 Kudos
14 Replies
Brandon_K_Intel
Employee
892 Views

It is going to be difficult to debug your build given just the build output. As you can see, the build output is not comprehensive. We are looking to get this resolved. In the meantime, you may have to share some screen shots of the project tab for your app to get the best assistance.

0 Kudos
fu_x_
Beginner
892 Views

Nothing code,I only create a blank project or demo by XDK.

XDK does not work in windows 8?

0 Kudos
Brandon_K_Intel
Employee
892 Views

We have tested the XDK in windows 8. It should work. If it doesn't, I hope you can help me figure out what your issue is! I wasn't asking for code, I was asking you to send me screen shots of the project tab which contains the build configurations.

0 Kudos
fu_x_
Beginner
892 Views

@Brandon Kiefer  Thanks for your reply.

 The build configurations is default.

 

QQ截图20140829213342.png

0 Kudos
fu_x_
Beginner
892 Views

2.png3.png

0 Kudos
Brandon_K_Intel
Employee
892 Views

Trying adding values to all of the fields for the Android Build. This may solve some of your issues!

0 Kudos
fu_x_
Beginner
892 Views

I tried,but still failed.

And Some times click button no effect.4.png

0 Kudos
Daniel_R_Intel1
Employee
892 Views

I have similar issue.  i use win 8. I loaded an app from the demo. i didn't change an code.  I could run the emulate and test. In build I’m not clear what I need to use Cordova or Legacy (I have Samsung S4).

When I run the Cordoba build I get the error in the next screen. when I run the legacy I have the error in the following images. Following screens are the one of the built setting (all have green check).

What I an do to be able to build an application.

Thanks

0 Kudos
Ramith_H_
Beginner
892 Views
You Should get a windows developer account so that you can provide the app id in the build page.
0 Kudos
wesley_sandro_f_
Beginner
892 Views

I can't create a plugin custon with the xdk can someone help me?

0 Kudos
Pamela_H_Intel
Moderator
892 Views

@wesley - you want to *create* a plugin or *use* a plugin? If you are trying to use a plugin, which one? Is it a 3rd party plugin? Are you trying it in the emulator, or on device?

0 Kudos
Marcondes__Marcos
892 Views

app id is something like com.name

Try to use com.yourprojectname.version123

0 Kudos
Alfredo_N_T_
Beginner
892 Views

Build Log

  • Building a Cordova 6.2.0 application.
  • Using platform cordova-android 5.1.1.
  • The application name is "webapp"
  • The package name is "com.intel.webapp"
  • Using Crosswalk Embedded stable
  • Plugin "org.apache.cordova.device" (0.2.9) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.0) installed.
  • Plugin "org.apache.cordova.network-information" (0.2.8) installed.
  • Plugin "org.apache.cordova.inappbrowser" (0.4.0) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.6) installed.
  • Plugin "cordova-plugin-whitelist" (1.2.2) installed.
  • Plugin "cordova-plugin-crosswalk-webview" (1.8.0) installed.
  • App name updated to [webapp]
  • Updated "minSdkVersion" with "14"
  • Updated "targetSdkVersion" with "19"
  • Updated "versionCode" to "1"
  • Updated "versionName" to "0.0.1"
  • Added "debuggable" to "false"
  • Error: A build error occurred. Check the build log.

 

You can view the f
ull log here

 

<!DOCTYPE html>
<html>
<head>
    <title>Cordova Web App Loader</title>
    
    <!-- This is a basic cordova template to load a mobile optimized website and package as hybrid app for distribution through App Stores. -->
    
    <!-- This type of app is recommended for websites built with an app like look-and-feel, responsive, single-page-app with no external website links or redirection -->
    
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <script src="cordova.js"></script>
    <script>
        function onDeviceReady(){
            checkConnection();
            navigator.splashscreen.hide();
        }
        document.addEventListener("deviceready", onDeviceReady, false);
        
        function checkConnection(){
            if(navigator.network.connection.type == Connection.NONE){
                document.getElementById("noconn").style.display = "block";
                document.getElementById("loading").style.display = "none";
            } else {
                // change this URL to your web app URL
                // make sure the web app is developed with all navigation and does not jump to external websites
                
                //*********************************//
                
                var url = "http://rocketradio.com.ar/";
                
                //*********************************//
                
                openInAppBrowser(url);    
            }            
        }
        
        function retryConnection(){
            document.getElementById("noconn").style.display = "none";
            document.getElementById("loading").style.display = "block";
            // adding delay for UX
            setTimeout(function(){
                checkConnection();
            }, 500);    
        }
        
        function openInAppBrowser(url){
            var iab = window.open(url, "_blank", "location=no,toolbar=no,hidden=yes");

            iab.addEventListener('loadstop', function(){
                iab.show();
            });
            
            iab.addEventListener('loadstart', function(obj){
                if(navigator.network.connection.type == Connection.NONE){
                    navigator.notification.alert("Internet connection was not detected, check your connection and retry", null, "No Internet");   
                }
            });

            iab.addEventListener('loaderror', function(){
                document.getElementById("noconn").style.display = "block";
                document.getElementById("loading").style.display = "none";
            });            
        }
    </script>
    <style>
        body {text-align: center;font-family: Arial;background-color: #eee}
        #noconn {display:none}
        .button {display:inline;padding:20px;border:1px solid #777;background-color: #ddd; border-radius: 5px}
    </style>    
</head>
<body>
    <div class="banner">
        <br>
        <br>
        <br>
        
        <!-- Add your app logo or text -->
        
        <h1>Iniciando RocketRadio</h1>
        <p>Espere</p>
        
        <!-- ------------------------- -->
        
        <br>
        <p id="loading">Loading...</p>
        <div id="noconn">
            <p>No Internet Connection</p>
            <br>
            <p><div class="button" onclick="retryConnection()">Retry</div></p>
        </div>
    </div>
</body>
</html>

 

0 Kudos
PaulF_IntelCorp
Employee
892 Views

Alfredo -- please start a new thread and please download and attach your detailed build log as a TXT file using the "Attach Files to Post" button below the edit window. The build logs do not persist between builds, so a link to the detailed build log cannot be accessed. Please also attach your code files, do not paste them into the forum, it is very difficult to help you when they are part of your post.

0 Kudos
Reply