If you have an apk, can you not just use something like ZipSigner 2 from the play store to sign with your key?
(I've created apk's this way in the past on other systems)
My way of using Android studio is to get the exported folder with all the stuff generated from Cordova export:
Below is all command line stuff: (btw I run JAVA8)
go into the exported project folder and type cordova platform add android (make sure you installed the cordova command line package, I installed the nodejs one)
Then had to sort out icon manually in android_manifest.xml ... find android:icon="@mipmap/screen" in this file
copy (containing screen.png) all folders mipmap-xxxx , there's 6 of them! e.g.
C:\Users\ACER\Download\Life Points Calculator\platforms\android\res\mipmap-hdpi
(example manifest.xml below)
in [apk name]\platforms\android
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10000" android:versionName="1.0" package="com.shader.effect" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/screen" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
Next, BUILD apk in Android Studio
------------------------------------------------
close any open project first
import project > gradle etc.. >
e.g Downloads\ShaderEffectsAPK\platforms
click on Android folder (do not go into it) and import
if any errors (see above about icon) > sort them > Clean Project
BUILD apk (Point to your local keystore.jks, will ask for password) by using Build > Generate Signed APK
copy apk to phone and install.