我正在开展cordova项目,我能够从我的cordova项目创建签名的apk。但现在我更新了我的cordova,离子,安卓工作室等...当我尝试创建签名的apk时,它无法正常工作o我只得到debug.apk文件,我正在给出结果
:preBuild
:preReleaseBuild
:checkReleaseManifest
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preReleaseBuild
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl UP-TO-DATE
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:processReleaseResources UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:compileReleaseJava UP-TO-DATE
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:packageReleaseJar UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:packageReleaseJniLibs UP-TO-DATE
:CordovaLib:packageReleaseLocalJar UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets UP-TO-DATE
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest UP-TO-DATE
:processReleaseResources UP-TO-DATE
:generateReleaseSources UP-TO-DATE
:compileReleaseJava UP-TO-DATE
:lintVitalRelease
:compileReleaseNdk UP-TO-DATE
:preDexRelease UP-TO-DATE
:dexRelease UP-TO-DATE
:processReleaseJavaRes UP-TO-DATE
:packageRelease UP-TO-DATE
:assembleRelease
:cdvBuildRelease
BUILD SUCCESSFUL
Total time: 13.243 secs
Built the following apk(s):
/Users/faitu/builtest/platforms/android/build/outputs/apk/android-release-unsigned.apk
Administrators-MacBook-Pro:builtest munafwew$
答案 0 :(得分:0)
for signed cordova apk首先你需要
keytool.exe - 为你的apk制作.keystore文件。
然后在命令提示符上运行命令
keytool --genkey -v -keystore <name of file .keystore>
-alias <some name>
-keyalg RSA -keysize 2048 -validity 99999
并按照步骤为您的应用创建密钥库。
现在使用jar签名者签署您的应用程序
jarsigner -verbose -sigalg SHA1withRSA -d
igestalg SHA1 -keystore <path of keystore file created above>
<path of unsigned apk>
<output file name apk>