在删除测试APK文件中的META-INF文件夹并将其拖放到重新签名的JAR文件中后,我看到一条错误消息:
"Error - Cannot run program "D:\work\android-sdks\platform-tools/tools/zipalign":CreateProcess error=2, The system cannot find the file specified"
似乎我可能在路径设置上出错了。请帮帮我。
but是手动工作的,但是在Jenkins post构建下失败了。我正在Ubuntu ec2实例上运行它。有人能帮我解决这个问题吗?
Jenkins产出:
BUILD SUCCESSFUL
Total time: 14.421 secs
Built the following apk(s):
/var/lib/jenkins/workspace/PP_androidBuild/PatientPortal/platforms/android/build/outputs/apk/android-debug.apk
[PP_androidBuild] $ echo '"re
我写了一个android应用。我在Windows7的cmd上输入zipalign myApp.apk,我得到:
zipalign' is not recognized as an internal or external command operable program or batch file
问题出在哪里?
cannot.find.zip.align=The zipalign tool was not found in the SDK.
Please update to the latest SDK and re-export your application
or run zipalign manually.
Aligning applications allows Android to use application resources
more efficiently.
这是我在尝试发布我的应用程序时收到的消息。我使用的是最新版本的Android SDK工具(今天发布了23个)和SDK平
我正在使用Jenkins为Android应用程序设置CI。我正在尝试使用将Android SDK配置为Jenkins Global工具。下面是我在Jenkins>Global Tool Configuration中配置的安装shell脚本。
printf "\nInstalling Android SDK as a Jenkins Custom Tool\n"
pwd
ls -la
if [ ! -d build-tools ];
then
printf "There's no dir by the name 'buil
在安装Catalina Mac Os之后,当我运行zipalign时,我开始看到这个错误 /usr/local/bin/zipalign: line 3: /usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.1/zipalign: Bad CPU type in executable
/usr/local/bin/zipalign: line 3: /usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.1/zipalign: Undefined error: 0 在寻找解决方
我需要下载什么才能在我的apk文件上使用zip-align工具?我正在使用ionic3指南进行Android开发。当我键入以下内容时:
zip-align -v 4 android-release-unsigned. apk HelloWorld.apk
我得到了:
'zip-align' is not recognized as an internal or external command,
operable program or batch file.
我想为google playstore构建
我正在Kony Studio中做一个演示项目。在运行Android应用程序时,我总是收到Ant build error。
请检查错误日志,
-post-package:
[exec-shell]
[exec-shell] /Users/mac/Library/Android/sdk/tools/ant/build.xml:1037: The following error occurred while executing this line:-do-debug:
[exec-shell]
[exec-shell] [zipalign] Running zip align on final
我已经在Devops中创建了一个构建管道,用于将我的应用程序发布到Google Play Store。然而,当将生成的APK文件上传到Google Play Store时,构建成功了,它抱怨道-“您上传的APK不是zip对齐的。您需要在APK上运行zip对齐工具,然后重新上传它。” 我已经检查了管道中的Android签名任务,以确保Zip Align已启用。 当通过VS2019手动执行构建并签署APK时,一切都很好,但我希望让管道正常工作。 请帮帮我。提前感谢!
在更新到SDK 23 (或更高版本)之后,每当我尝试使用GeneXus构建针对安卓的SD应用程序时,编译后都会得到以下消息:
error: Could not find: <sdk>\platform-tools\zipalign.exe
Command: zipalign 4 "<path_to_apk-release-unsigned.apk>" "<path_to_apk>"
error: The system cannot find the file specified
Android Compilation Fail
我正在尝试让jenkins工作自动编译我的APK文件,并使用我在文件夹中的keystore对其进行签名。我试过这个:
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
SET ANDROID_HOME=E:\androidsdk
SET PATH=%PATH%;%JAVA_HOME%;%ANDROID_HOME%
SET ZIPALIGN="%ANDROID_HOME%\build-tools\23.0.3\zipalign"
echo %cd%
gradlew assembleDebug & "%JAVA_HO