Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

After updating to [email protected] it creates apk in different directories and can't run on device anymore #238

Open
franzisk opened this issue Oct 29, 2018 · 1 comment

Comments

@franzisk
Copy link

franzisk commented Oct 29, 2018

I am facing this problem with Crosswalk after updating the platform to 6.4.0.

The apk files are created but as they are in different directory names the run took seems not to find them to run on device.
Actually after the build itself they apk files are not listed anymore.

Ionic Info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms  : android 6.4.0 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 2.0.0
    ios-sim           : 6.0.0
    Node              : v8.11.3
    npm               : 5.6.0
    OS                : macOS
    Xcode             : Xcode 10.0 Build version 10A255

Environment Variables:

    ANDROID_HOME : /Users/francisco/Library/Android/sdk

Misc:

    backend : legacy

Plugins:

cordova-android-support-gradle-release 1.4.5 "cordova-android-support-gradle-release"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

Command just to build (see the last part where should list generated apk files):
$ cordova build android

Result:

BUILD SUCCESSFUL in 24s
70 actionable tasks: 10 executed, 60 up-to-date
Built the following apk(s):
(THERE ARE NO APK FILES LISTED HERE, IT SHOULD HAVE)

Crosswalk info:
        After much discussion and analysis of the market,
        we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20,
        so the minSdkVersion of Cordova project is configured to 16 by default.

If I look in the directory structure inside the platform on the build folder the apk files are there, but inside subfolders, I think that's the problem:
apk_files

Could anyone point any solution for this annoying problem? I really need to use Crosswalk because of Android 4.1+

@franzisk franzisk changed the title After updating to [email protected] it creates apk in different directories and can't run on device anymore After updating to [email protected] it creates apk in different directories and can't run on device anymore Oct 29, 2018
@Salcci
Copy link

Salcci commented Jan 15, 2019

You can use "adb install" to install your code in device. You may have to start it manually.
adb install -r platforms/android/build/outputs/apk/armv7/debug/android-armv7-debug.apk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants