Ionic 3 project and plugin crosswalk error

后端 未结 4 1503
你的背包
你的背包 2021-02-07 10:47

I have a Ionic 3 project, when I run \"ionic cordova run android --prod\" I see

This error:

ANDROID_HOME=C:\\Users\\asus\\AppData\\Loca         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 11:14

    This is follow up to hemantv's answer. I was panicking but his answer saved my day, and I was able to successfully compile the app using the locally stored xwalk.

    This is what I did and i hope it helps someone out there who's stuck with the same predicament.

    I found out the Crosswalk version I have stored locally by running a search (including sub directorys) for "xwalk_core_library" in my app directory and found the file "org.xwalk-xwalk_core_library-17.46.448.10_9bf812c8b76a44fdb31553d48df45b60d1362adc.jar" and figured out the version I had was "org.xwalk-xwalk_core_library-17.46.448.10" (everything after the underscore "_" is irrelevant)

    I followed the instructions and opened up the platforms\android\cordova-plugin-crosswalk-webview*-xwalk.gradle in a text editor

    found

    dependencies {
        compile xwalkSpec
    }
    

    replaced with

    dependencies {    
        compile 'org.xwalk:xwalk_core_library:17.46.448.10'
    }
    

    reattempted to compile and it worked like a charm.

提交回复
热议问题