Intel XDK fails to build a project

0 favourites
  • 9 posts
From the Asset Store
With this template you can create your own archer game and customize it however you want.
  • Hi!

    I've made a game and now, I want to export it to Android via Crosswalk. I have the newest Intel XDK (1536). But it doesn't build the app. I got an error: The build failed. As far I can see, it looks like there's a problem with Google Play plugin ... I'm attaching a screenshot.

    EDIT: I've update Construct 2 to r191 (beta) and now it works.

  • Now, I have another problem. Few hours ago, the build was succesfull. But now, I want to update this app, and I get another error

  • grigrizljac click the view android log button and post it here or try and read it yourself it should have the reason it is failing

  • volkiller730 This is the build log:

    [quote:2tx0p1ha]Buildfile: .../****/build.xml

    -check-env:

    [checkenv] Android SDK Tools Revision 23.0.2

    [checkenv] Installed at ...

    -setup:

    [echo] Project Name: ****

    [gettype] Project Type: Application

    -pre-clean:

    clean:

    BUILD SUCCESSFUL

    Total time: 0 seconds

    Buildfile: .../****/build.xml

    -set-mode-check:

    -set-release-mode:

    -release-obfuscation-check:

    [echo] proguard.config is ${proguard.config}

    -pre-build:

    -check-env:

    [checkenv] Android SDK Tools Revision 23.0.2

    [checkenv] Installed at ...

    -setup:

    [echo] Project Name: ****

    [gettype] Project Type: Application

    -build-setup:

    [getbuildtools] Using latest Build Tools: 20.0.0

    [echo] Resolving Build Target for****...

    [gettarget] Project Target: Android 4.4.2

    [gettarget] API level: 19

    [echo] ----------

    [echo] Creating output directories if needed...

    [mkdir] Created dir: .../****/bin

    [mkdir] Created dir: .../****/bin/res

    [mkdir] Created dir: .../****/bin/rsObj

    [mkdir] Created dir: .../****/bin/rsLibs

    [mkdir] Created dir: .../****/gen

    [mkdir] Created dir: .../****/bin/classes

    [mkdir] Created dir: .../****/bin/dexedLibs

    [echo] ----------

    [echo] Resolving Dependencies for ****...

    [dependency] Library dependencies:

    [dependency]

    [dependency] ------------------

    [dependency] Ordered libraries:

    [dependency]

    [dependency] ------------------

    -code-gen:

    [mergemanifest] Merging AndroidManifest files into one.

    [mergemanifest] Manifest merger disabled. Using project manifest only.

    [echo] Handling aidl files...

    [aidl] No AIDL files to compile.

    [echo] ----------

    [echo] Handling RenderScript files...

    [echo] ----------

    [echo] Handling Resources...

    [aapt] Generating resource IDs...

    [aapt] nothing matches overlay file icon.png, for flavor ,,,,,,,,,,,,,,,,,,,

    [aapt] nothing matches overlay file icon.png, for flavor ,,,,,,,,,,,,xhdpi,,,,,,,

    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,port,,,hdpi,,,,,,,

    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,port,,,ldpi,,,,,,,

    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,port,,,mdpi,,,,,,,

    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,port,,,xhdpi,,,,,,,

    [echo] ----------

    [echo] Handling BuildConfig class...

    [buildconfig] Generating BuildConfig class.

    -pre-compile:

    -compile:

    [javac] Compiling 11 source files to .../****/bin/classes

    [javac] warning: android/support/v4/app/FragmentActivity.class(android/support/v4/app:FragmentActivity.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/GoogleApiClient.class(com/google/android/gms/common/api:GoogleApiClient.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/appstate/AppStateManager.class(com/google/android/gms/appstate:AppStateManager.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/ConnectionResult.class(com/google/android/gms/common:ConnectionResult.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/GooglePlayServicesUtil.class(com/google/android/gms/common:GooglePlayServicesUtil.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api.class(com/google/android/gms/common/api:Api.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api$ApiOptions.class(com/google/android/gms/common/api:Api$ApiOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api$ApiOptions$NoOptions.class(com/google/android/gms/common/api:Api$ApiOptions$NoOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/drive/Drive.class(com/google/android/gms/drive:Drive.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/Games.class(com/google/android/gms/games:Games.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/Games$GamesOptions.class(com/google/android/gms/games:Games$GamesOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/GamesActivityResultCodes.class(com/google/android/gms/games:GamesActivityResultCodes.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/multiplayer/Invitation.class(com/google/android/gms/games/multiplayer:Invitation.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/multiplayer/Multiplayer.class(com/google/android/gms/games/multiplayer:Multiplayer.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/multiplayer/turnbased/TurnBasedMatch.class(com/google/android/gms/games/multiplayer/turnbased:TurnBasedMatch.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/request/GameRequest.class(com/google/android/gms/games/request:GameRequest.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/plus/Plus.class(com/google/android/gms/plus:Plus.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/plus/Plus$PlusOptions.class(com/google/android/gms/plus:Plus$PlusOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/GoogleApiClient$ConnectionCallbacks.class(com/google/android/gms/common/api:GoogleApiClient$ConnectionCallbacks.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/GoogleApiClient$OnConnectionFailedListener.class(com/google/android/gms/common/api:GoogleApiClient$OnConnectionFailedListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/GooglePlayServicesClient.class(com/google/android/gms/common:GooglePlayServicesClient.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/GooglePlayServicesClient$OnConnectionFailedListener.class(com/google/android/gms/common:GooglePlayServicesClient$OnConnectionFailedListener.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/GoogleApiClient$Builder.class(com/google/android/gms/common/api:GoogleApiClient$Builder.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/Player.class(com/google/android/gms/games:Player.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/Games$GamesOptions$Builder.class(com/google/android/gms/games:Games$GamesOptions$Builder.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api$ApiOptions$HasOptions.class(com/google/android/gms/common/api:Api$ApiOptions$HasOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api$ApiOptions$Optional.class(com/google/android/gms/common/api:Api$ApiOptions$Optional.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Api$ApiOptions$NotRequiredOptions.class(com/google/android/gms/common/api:Api$ApiOptions$NotRequiredOptions.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/Scope.class(com/google/android/gms/common/api:Scope.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/data/Freezable.class(com/google/android/gms/common/data:Freezable.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/multiplayer/Participatable.class(com/google/android/gms/games/multiplayer:Participatable.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/plus/Account.class(com/google/android/gms/plus:Account.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/common/api/PendingResult.class(com/google/android/gms/common/api:PendingResult.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/request/Requests.class(com/google/android/gms/games/request:Requests.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/achievement/Achievements.class(com/google/android/gms/games/achievement:Achievements.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] warning: com/google/android/gms/games/leaderboard/Leaderboards.class(com/google/android/gms/games/leaderboard:Leaderboards.class): major version 51 is newer than 50, the highest major version supported by this compiler.

    [javac] It is recommended that the compiler be upgraded.

    [javac] 36 warnings

    -post-compile:

    -obfuscate:

    -dex:

    [dex] input: .../****/bin/classes

    [dex] input: .../framework/bin/classes.jar

    [dex] input: .../framework/xwalk_core_library/bin/classes.jar

    [dex] input: .../****/com.google.playservices/google-play-services_lib/bin/classes.jar

    [dex] input: .../****/libs/android-support-v4.jar

    [dex] input: .../****/com.google.playservices/google-play-services_lib/libs/google-play-services.jar

    [dex] input: .../framework/xwalk_core_library/libs/xwalk_core_library_java.jar

    [dex] Pre-Dexing .../framework/bin/classes.jar -> classes-c888b94ddba97b0e25b22525db35b6cc.jar

    [dex] Pre-Dexing .../framework/xwalk_core_library/bin/classes.jar -> classes-87b66cb50b13fe1ffdecf5ef05c79ce8.jar

    [dex] Pre-Dexing .../****/libs/android-support-v4.jar -> android-support-v4-ced88c446ddb086e1a73dbfa917525c8.jar

    [dex] Pre-Dexing .../****/com.google.playservices/google-play-services_lib/libs/google-play-services.jar -> google-play-services-d8df840c5d4b1bd9b43a8588a7b4bfed.jar

    [dex] Pre-Dexing .../framework/xwalk_core_library/libs/xwalk_core_library_java.jar -> xwalk_core_library_java-1aa58519e49aaf933d900f3c0be99fa5.jar

    [dex] Converting compiled files and external libraries into .../****/bin/classes.dex...

    [dx]

    [dx] UNEXPECTED TOP-LEVEL EXCEPTION:

    [dx] java.util.zip.ZipException: error in opening zip file

    [dx] at java.util.zip.ZipFile.open(Native Method)

    [dx] at java.util.zip.ZipFile.<init>(ZipFile.java:127)

    [dx] at java.util.zip.ZipFile.<init>(ZipFile.java:143)

    [dx] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)

    [dx] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)

    [dx] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)

    [dx] at com.android.dx.command.dexer.Main.processOne(Main.java:596)

    [dx] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)

    [dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)

    [dx] at com.android.dx.command.dexer.Main.run(Main.java:230)

    [dx] at com.android.dx.command.dexer.Main.main(Main.java:199)

    [dx] at com.android.dx.command.Main.main(Main.java:103)

    [dx] 1 error; aborting

    BUILD FAILED

    .../tools/ant/build.xml:892: The following error occurred while executing this line:

    .../tools/ant/build.xml:894: The following error occurred while executing this line:

    .../tools/ant/build.xml:906: The following error occurred while executing this line:

    .../tools/ant/build.xml:283: null returned: 1

    Total time: 56 seconds

    Error code 1 for command: ant with args: release,-f,.../****/build.xml"

    Name of app was replaced with ****. If you need it, I can return it to its original name.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • IntelRobert

    IntelTyler

    Any idea how to fix?

  • It looks like the problem exists only when I add Google play to the project. I've created a new project, and build was successful. But when I added Google play, the build failed.

    Anyone with the same problem or does it work for anyone?

  • How are you adding Google play?

  • How are you adding Google play?

    In C2, I insert a new object (Google Play). Then, I fill in object properties (App ID (12-dight number), Client ID (12-dight number-lettersAndNumbers.apps.googleusercontent.com), Client secret (LettersAndNumbers)).

    The same App ID I use in Intel XDK (when I tick Google Play plug-in).

    In C2 I added to event sheet:

    GP is loaded, GP is signed in (inverted), system trigger once -> GP sign in

    That works when I preview on PC (I get a message "Welcome back, name").

    I've also tried to add leaderboards. I set

    Touch on touched sprite -> GP request public all-time hi-scores from "lettersAndNumbers" (25 results, top).

    But that doesn't work on PC (I don't know why ).

    Am I doing something wrong?

  • Does Google Play actually even work when exporting to Intel XDK, Crosswalk? Is it supported?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)