Ionic build x86 or armv7 (Error Mismatch of cpu architecture)

Hi,
I’m build app for android and

2 apk file
if I installed x86.apk error(mismatch of cpu architecture)
if I installed armv7.apk (maybe 20second wait splashscreen and run)

which one should I use

Since you get two different apk’s, I’m guessing your using crosswalk. Do you really need it? If it comes down to these two versions, it makes sense 1 won’t run on your phone since these versions are for different phone architectures. One is for X86 and one is for armv7 chipsets. You can upload them both to google Play and the store decide which architecture the phone’s user needs when downloading your app.

Regarding the boottime, did you build with --prod flag?

1 Like

Do you really need it?
=>I dont know but I didnt run emulator(android 4.1)to install it, they said.But then it turns out the problem was in the emulator.I’m not sure I have
Do you think uninstall?

It depends. For which versions of Android are you building your app? Do you need to target Android <4.4?

Yes. Android version > 4.1

Okay, then I suggest you run it with crosswalk. So it gives you two packages, which you should use both in production later on. I think the boottime can be much slower when testing on an emulator. It’s better to just test it on an older device if you have one. Also boottimes can be much slower on older devices (makes sense). What’s the real problem you still want to resolve?

I installed (real device android 4.1) armv7.apk maybe 20 second wait splashscreen and then run

Okay, and did you build with the --prod flag?

It seems your plugins are out of date?

I’m run
npm update
but same error

Could you please post the contents of your package.json over here?

{
    
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/media": "^3.14.0",
        "@ionic-native/native-audio": "^3.14.0",
        "@ionic-native/screen-orientation": "^3.14.0",
        "@ionic-native/splash-screen": "^3.14.0",
        "@ionic-native/status-bar": "^3.14.0",
        "@ionic-native/streaming-media": "^3.14.0",
        "@ionic/storage": "^2.0.1",
        "cordova-android": "^6.2.3",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-compat": "^1.1.0",
        "cordova-plugin-console": "^1.0.7",
        "cordova-plugin-crosswalk-webview": "^2.3.0",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-file": "^4.3.3",
        "cordova-plugin-media": "^3.0.1",
        "cordova-plugin-nativeaudio": "^3.0.9",
        "cordova-plugin-screen-orientation": "^2.0.1",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-plugin-streaming-media": "^1.0.2",
        "cordova-plugin-whitelist": "^1.3.2",
        "cordova-sqlite-storage": "^2.0.4",
        "ionic-angular": "3.5.0",
        "ionic-audio": "^3.1.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.12",
        "com.hutchind.cordova.plugins.streamingmedia": "~0.1.4"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^1.3.12",
        "@ionic/cli-plugin-cordova": "1.4.1",
        "@ionic/cli-plugin-ionic-angular": "1.3.2",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-screen-orientation": {},
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-sqlite-storage": {},
            "com.hutchind.cordova.plugins.streamingmedia": {},
            "cordova-plugin-media": {},
            "cordova-plugin-nativeaudio": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-crosswalk-webview": {
                "XWALK_VERSION": "23+",
                "XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
                "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
                "XWALK_MODE": "embedded",
                "XWALK_MULTIPLEAPK": "true"
            }
        },
        "platforms": []
    }
}

(This is unfortunately a wrong error message of the CLI that will be fixed in the next release - it always gets output if there is an error during running the plugin. You can ignore it.)

1 Like

@Cankaya created another topic about this

So I will close this one here.