PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview
PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview
1) Mesti guna cordova-plugin-crosswalk-webview 1.3.1 "Crosswalk WebView Engine". Versi lain ada banyak masalah pada phone X86.
-------------------------------------------------------------------
COMMAND : cordova plugin add cordova-plugin-crosswalk-webview@1.3.1
-------------------------------------------------------------------
2) Guna cordova 4.1.1 pun dah ok. Kalau nak guna versi latest, upgrade apps :
-------------------------------------------------------------------
COMMAND : cordova platform update android
-------------------------------------------------------------------
Kalau nak guna versi lama :
-------------------------------------------------------------------
COMMAND : cordova platform update android@4.1.1
-------------------------------------------------------------------
3) Kalau dah guna cordova versi terbaru, & ada masalah nak compile sebab guna class API bawah 23, refer ini:
-------------------------------------------------------------------
http://stackoverflow.com/questions/31433687/android-gradle-apache-httpclient-does-not-exist
-------------------------------------------------------------------
if you are using target sdk as 23 add below code in your build.gradle
android{
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
}
and change your buildscript to
classpath 'com.android.tools.build:gradle:1.3.0'