2014-11-05 3 views
0

어제 내 앱을 만들 수 있습니다. 하지만 ... 오늘 나는 할 수 없습니다 나는 문제가 무엇인지 모르는Android 용 횡단 보도가 실패했습니다 (XDK-app-Build)

내가 오류가입니다 :

The App ID is "com.my.App" 
The App Name is "App" 
Crosswalk Version: Stable (7.36.154.14) 
Plugin installed: File (org.apache.cordova.file) 
Plugin installed: Pushwoosh (https://github.com/Pushwoosh/pushwoosh- ... plugin.git) 
Plugin installed: myAdmob (https://github.com/floatinghotpot/cordo ... -admob.git) 
Plugin installed: myLocalNotification (de.appplant.cordova.plugin.local-notification) 
Plugin installed: Accelerometer (org.apache.cordova.device-motion) 
Plugin installed: Camera (org.apache.cordova.camera) 
Plugin installed: Capture (org.apache.cordova.media-capture) 
Plugin installed: Compass (org.apache.cordova.device-orientation) 
Plugin installed: Connection (org.apache.cordova.network-information) 
Plugin installed: Contacts (org.apache.cordova.contacts) 
Plugin installed: Device (org.apache.cordova.device) 
Plugin installed: Events (battery status) (org.apache.cordova.battery-status) 
Plugin installed: Geolocation (org.apache.cordova.geolocation) 
Plugin installed: Globalization (org.apache.cordova.globalization) 
Plugin installed: In App Browser (org.apache.cordova.inappbrowser) 
Plugin installed: Media (org.apache.cordova.media) 
Plugin installed: Dialogs (notification) (org.apache.cordova.dialogs) 
Plugin installed: Vibration (notification) (org.apache.cordova.vibration) 
Plugin installed: SplashScreen (org.apache.cordova.splashscreen) 
Plugin installed: App Security API (com.intel.security) 
Plugin installed: Audio (intel.xdk.audio) 
Plugin installed: Cache (intel.xdk.cache) 
Plugin installed: Camera (intel.xdk.camera) 
Plugin installed: Contacts (intel.xdk.contacts) 
Plugin installed: Device (intel.xdk.device) 
Plugin installed: File (intel.xdk.file) 
Plugin installed: Notification (intel.xdk.notification) 
Plugin installed: Player (intel.xdk.player) 
Plugin installed: Dolby* Audio API (https://github.com/DolbyDev/Dolby-Audio ... or-Cordova) 
Plugin installed: File Transfer (org.apache.cordova.file-transfer) 
Plugin installed: StatusBar (org.apache.cordova.statusbar) 

당신 :

An error occurred while building the application. Verify your build assets are correct and try again. 

은 로그인 구축 Android 빌드의 로그를 볼 수 있습니다.

Buildfile: .../appname/build.xml 
 

 
-check-env: 
 
[checkenv] Android SDK Tools Revision 23.0.2 
 
[checkenv] Installed at ... 
 

 
-setup: 
 
    [echo] Project Name: appname 
 
    [gettype] Project Type: Application 
 

 
-pre-clean: 
 

 
clean: 
 

 
BUILD SUCCESSFUL 
 
Total time: 0 seconds 
 
Buildfile: .../appname/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: appname 
 
    [gettype] Project Type: Application 
 

 
-build-setup: 
 
[getbuildtools] Using latest Build Tools: 20.0.0 
 
    [echo] Resolving Build Target for appname... 
 
[gettarget] Project Target: Android 4.4.2 
 
[gettarget] API level:  19 
 
    [echo] ---------- 
 
    [echo] Creating output directories if needed... 
 
    [mkdir] Created dir: .../appname/bin 
 
    [mkdir] Created dir: .../appname/bin/res 
 
    [mkdir] Created dir: .../appname/bin/rsObj 
 
    [mkdir] Created dir: .../appname/bin/rsLibs 
 
    [mkdir] Created dir: .../appname/gen 
 
    [mkdir] Created dir: .../appname/bin/classes 
 
    [mkdir] Created dir: .../appname/bin/dexedLibs 
 
    [echo] ---------- 
 
    [echo] Resolving Dependencies for appname... 
 
[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 ,,,,,,,,,land,,,hdpi,,,,,,, 
 
    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,land,,,ldpi,,,,,,, 
 
    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,land,,,mdpi,,,,,,, 
 
    [aapt] nothing matches overlay file splash.png, for flavor ,,,,,,,,,land,,,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 63 source files to .../appname/bin/classes 
 
    [javac] warning: com/google/android/gms/ads/AdListener.class(com/google/android/gms/ads:AdListener.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/ads/AdRequest.class(com/google/android/gms/ads:AdRequest.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/ads/AdSize.class(com/google/android/gms/ads:AdSize.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/ads/AdView.class(com/google/android/gms/ads:AdView.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/ads/InterstitialAd.class(com/google/android/gms/ads:InterstitialAd.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/ads/mediation/admob/AdMobExtras.class(com/google/android/gms/ads/mediation/admob:AdMobExtras.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/ads/AdRequest$Builder.class(com/google/android/gms/ads:AdRequest$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/ads/mediation/NetworkExtras.class(com/google/android/gms/ads/mediation:NetworkExtras.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/ads/mediation/NetworkExtras.class(com/google/ads/mediation:NetworkExtras.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] Note: Some input files use or override a deprecated API. 
 
    [javac] Note: Recompile with -Xlint:deprecation for details. 
 
    [javac] Note: Some input files use unchecked or unsafe operations. 
 
    [javac] Note: Recompile with -Xlint:unchecked for details. 
 
    [javac] 11 warnings 
 

 
-post-compile: 
 

 
-obfuscate: 
 

 
-dex: 
 
     [dex] input: .../appname/bin/classes 
 
     [dex] input: .../framework/bin/classes.jar 
 
     [dex] input: .../framework/xwalk_core_library/bin/classes.jar 
 
     [dex] input: .../appname/com.google.playservices/google-play-services_lib/bin/classes.jar 
 
     [dex] input: .../appname/libs/dolby_audio_processing.jar 
 
     [dex] input: .../appname/libs/com.google.zxing.client.android.captureactivity.jar 
 
     [dex] input: .../appname/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] input: .../appname/libs/Pushwoosh.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 .../appname/libs/dolby_audio_processing.jar -> dolby_audio_processing-721546cd6baac89d8439fad4e1b2a961.jar 
 
     [dex] Pre-Dexing .../appname/libs/com.google.zxing.client.android.captureactivity.jar -> com.google.zxing.client.android.captureactivity-7406fbf66dfb31f2544e7a8cf811691b.jar 
 
     [dex] Pre-Dexing .../appname/com.google.playservices/google-play-services_lib/libs/google-play-services.jar -> google-play-services-bf5947c07197107dd868b3b9915d2dc1.jar 
 
     [dex] Pre-Dexing .../framework/xwalk_core_library/libs/xwalk_core_library_java.jar -> xwalk_core_library_java-1aa58519e49aaf933d900f3c0be99fa5.jar 
 
     [dex] Pre-Dexing .../appname/libs/Pushwoosh.jar -> Pushwoosh-fb05e2860f5f63773071342ca81e3b6d.jar 
 
     [dex] Converting compiled files and external libraries into .../appname/bin/classes.dex... 
 
     [dx] 
 
     [dx] UNEXPECTED TOP-LEVEL EXCEPTION: 
 
     [dx] java.util.zip.ZipException: error in opening zip file 
 
     [dx] \t at java.util.zip.ZipFile.open(Native Method) 
 
     [dx] \t at java.util.zip.ZipFile.<init>(ZipFile.java:127) 
 
     [dx] \t at java.util.zip.ZipFile.<init>(ZipFile.java:143) 
 
     [dx] \t at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244) 
 
     [dx] \t at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) 
 
     [dx] \t at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) 
 
     [dx] \t at com.android.dx.command.dexer.Main.processOne(Main.java:596) 
 
     [dx] \t at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498) 
 
     [dx] \t at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264) 
 
     [dx] \t at com.android.dx.command.dexer.Main.run(Main.java:230) 
 
     [dx] \t at com.android.dx.command.dexer.Main.main(Main.java:199) 
 
     [dx] \t 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: 1 minute 13 seconds 
 
Error code 1 for command: ant with args: release,-f,.../appname/build.xml

누가 도와 주시겠습니까? 그것은 좋은 것입니다.

+0

자세한 정보를 제공해 줄 수 있습니까? 빌드 로그에 위에서 공유 한 내용을 기반으로 오류나 경고가 표시되지 않습니다. – eashtianjr

+0

답변 해 주셔서 감사합니다. 나는 건축 할 수 있었다. 그러나 때때로 지금 내가 더 이상 건축 할 수 없다. .. 그것은 아직도 같은 코드 다. 나는 더 많은 정보를 더했다. – Hungry2Learn

답변

1

해결되었습니다. 다시 빌드하십시오.

근본 원인 :

인텔 XDK 새롭게 플러그인 ([email protected])에 도입 라이브러리 프로젝트를 지원하지 않습니다.

<framework src="libs/google-play-services_lib" custom="true" /> 
"com.google.playservices"의 변화 AdMob의 플러그인이 실패의 원인이됩니다 왜 당신은 요청할 수 있습니다

?

admob 플러그인은 프로젝트에 google play services jar를 추가하는 "com.google.playservices"라는 다른 플러그인에 종속되어있었습니다.

"[email protected]"은 간단한 jar 파일로 매우 잘 작동합니다.

<source-file src="google-play-services.jar" target-dir="libs" /> 

"[email protected]"은 새로운 기능을 사용하여 전체 라이브러리 프로젝트를 포함합니다. 로컬 코르도바 CLI와 빌드 경우

<framework src="libs/google-play-services_lib" custom="true" /> 

그것은 아주 잘 작동하지만, 인텔 XDK로 할 때 빌드가 실패합니다.

Intel XDK와 호환되도록 admob 플러그인의 종속성이 단순한 jar 파일 인 "[email protected]"으로 변경되었습니다.

이제 Intel XDK에서 다시 작동합니다.