Hi Alfred, Have you set proper environment variables? [1][2] What does echo $JAVA_HOME and $ANDROID_HOME environment variable outputs? BTW, Android support libraries (e.g. support-v4, support-v7 etc) are no longer bundled by Crosswalk and should be included explicitly if required[3], please install the "Android Support Repository/Support Library" [4] from the extras repository in your Android SDK.
Without Ionic, can you build pure Cordova apps successfully? If the Cordova app can be build, could you please try [5]: $ cordova plugin add cordova-plugin-crosswalk-webview $ cordova build android I just wondering if it’s really Ionic project relevant issue with Crosswalk on your side. If it failed, it may not Ionic project relevant issue, we can investigate it further. [1] http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html (Installing the Cordova Requirements) [2] https://crosswalk-project.org/documentation/android/system_setup.html [3] https://crosswalk-project.org/blog/crosswalk-16.html [4] http://developer.android.com/tools/support-library/setup.html [5] https://www.npmjs.com/package/cordova-plugin-crosswalk-webview BR Belem From: Crosswalk-help [mailto:[email protected]] On Behalf Of Alfred DI Sent: Thursday, May 5, 2016 6:10 PM To: [email protected] Subject: [Crosswalk-help] Error when building ionic project with crosswalk Dear All, First of all, i apologize, but i'm a novice in mobile apps development. And i've been seaching solution using google, and tried some of it, and i can't find one with the same error like mine. Here is my problem : I've been trying to build (ionic build android). I'm using : cordova 6.0.0 java jdk1.8.0_40 This is what i'm targeting in my platforms/android/AndroidManifest.xml <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> And i before that i also did a : ionic browser add crosswalk Plugins installed : [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> https://github.com/floatinghotpot/cordova-plugin-admob.git https://github.com/devgeeks/Canvas2ImagePlugin.git https://github.com/wymsee/cordova-imagePicker.git https://github.com/litehelpers/Cordova-sqlite-storage.git#0.7.14 [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> https://github.com/EddyVerbruggen/Flashlight-PhoneGap-Plugin#3.0.0 [email protected]<mailto:[email protected]> https://github.com/katzer/cordova-plugin-local-notifications#0.8.4 When i did a ionic build android, i keep getting this error : :compileArmv7DebugJavaWithJavacC:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaClientCertRequest.java:22: error: cannot find symbol import org.xwalk.core.ClientCertRequest; ^ symbol: class ClientCertRequest location: package org.xwalk.core C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaClientCertRequest.java:31: error: cannot find symbol private final ClientCertRequest request; ^ symbol: class ClientCertRequest location: class XWalkCordovaClientCertRequest C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaClientCertRequest.java:33: error: cannot find symbol public XWalkCordovaClientCertRequest(ClientCertRequest request) { ^ symbol: class ClientCertRequest location: class XWalkCordovaClientCertRequest C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaHttpAuthHandler.java:22: error: cannot find symbol import org.xwalk.core.XWalkHttpAuthHandler; ^ symbol: class XWalkHttpAuthHandler location: package org.xwalk.core C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaHttpAuthHandler.java:30: error: cannot find symbol private final XWalkHttpAuthHandler handler; ^ symbol: class XWalkHttpAuthHandler location: class XWalkCordovaHttpAuthHandler C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaHttpAuthHandler.java:32: error: cannot find symbol public XWalkCordovaHttpAuthHandler(XWalkHttpAuthHandler handler) { ^ symbol: class XWalkHttpAuthHandler location: class XWalkCordovaHttpAuthHandler C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:32: error: cannot find symbol import org.xwalk.core.ClientCertRequest; ^ symbol: class ClientCertRequest location: package org.xwalk.core C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:33: error: cannot find symbol import org.xwalk.core.XWalkHttpAuthHandler; ^ symbol: class XWalkHttpAuthHandler location: package org.xwalk.core C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkWebViewEngine.java:50: error: cannot find symbol import org.xwalk.core.XWalkGetBitmapCallback; ^ symbol: class XWalkGetBitmapCallback location: package org.xwalk.core C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:132: error: cannot find symbol public void onReceivedHttpAuthRequest(XWalkView view, XWalkHttpAuthHandler handler, ^ symbol: class XWalkHttpAuthHandler location: class XWalkCordovaResourceClient C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:148: error: cannot find symbol public void onReceivedClientCertRequest(XWalkView view, ClientCertRequest request) { ^ symbol: class ClientCertRequest location: class XWalkCordovaResourceClient C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:131: error: method does not override or implement a method from a supertype @Override ^ C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java:147: error: method does not override or implement a method from a supertype @Override ^ C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkWebViewEngine.java:108: error: cannot find symbol new XWalkGetBitmapCallback() { ^ symbol: class XWalkGetBitmapCallback C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkWebViewEngine.java:203: error: cannot find symbol webView.setUserAgentString(webView.getUserAgentString() + " " + appendUserAgent); ^ symbol: method getUserAgentString() location: variable webView of type XWalkCordovaView C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkWebViewEngine.java:231: error: cannot find symbol webView.getExtensionManager().loadExtension(XWALK_EXTENSIONS_FOLDER + File.separator + path); ^ symbol: method getExtensionManager() location: variable webView of type XWalkCordovaView C:\DEV\IonicMaterialDesign\platforms\android\src\org\crosswalk\engine\XWalkCordovaView.java:93: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\DEV\IonicMaterialDesign\platforms\android\src\com\synconset\MultiImageChooserActivity.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 17 errors FAILED BUILD FAILED Total time: 2 mins 0.838 secs FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileArmv7DebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"C:\DEV\IonicMaterialDesign\platforms\android\gradlew cdvBuildDebug -b C:\DEV\IonicMaterialDesign\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" You may not have the required environment or OS to build this project Error: Error code 1 for command: cmd with args: /s,/c,"C:\DEV\IonicMaterialDesign\platforms\android\gradlew cdvBuildDebug -b C:\DEV\IonicMaterialDesign\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" When I saw that the error are coming from something like "compileArmv7", i tried to install ARM v7a i can find using SDK Manager, and these are installed in my SDK manager : Android SDK Tools 25.1.3 Android SDK Platform -tools 23.1 Android SDK Build-tools 23.0.1 Android SDK Build-tools 22.0.1 Android SDK Build-tools 21.1.2 Android SDK Build-tools 20 Android SDK Build-tools 19.1 Android 6.0 (API 23) SDK Platform Android 6.0 (API 23) ARM EABI v7a System Image Android 6.0 (API 23) Google APIs ARM EABI v7a System Image Android 6.0 (API 23) Google APIs Android 5.1.1 (API 22) SDK Platform Android 5.1.1 (API 22) ARM EABI v7a System Image Android 5.1.1 (API 22) Google APIs Android 5.0.1 (API 21) SDK Platform Android 5.0.1 (API 21) ARM EABI v7a System Image Android 4.4W.2 (API 20) SDK Platform Android 4.4.2 (API 19) SDK Platform Android 4.4.2 (API 19) ARM EABI v7a System Image If anyone can shed some light here, it will be greatly appreciated. Thanks in advance
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
