dongzhila3786
2014-03-03 22:52
浏览 51

使用php将android项目编译为apk

i have android project created by eclipse i need to compile it to android apk

how can i do it using php ?

also how can i use custom keystore ?

some website do this using .net but can i do this using php ?

or i can run some script using root access to do this and create android apk ?

i cant find something like this in this website

http://www.phpforandroid.net/doku.php

thanks everyone :)

sorry for my bad english :(

图片转代码服务由CSDN问答提供 功能建议

我有eclipse创建的android项目我需要将它编译成android apk 我怎么能用php做呢?

我怎样才能使用自定义密钥库?

某些网站使用.net这样做但我可以 使用php吗?

或者我可以使用root访问运行一些脚本来执行此操作并创建android apk?

我无法找到类似这样的内容 在这个网站

  http://www.phpforandroid.net/doku.php
   
 
 

谢谢大家: 抱歉我的英语不好:( 。)

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushenyu2537 2014-03-04 01:53
    已采纳

    First of all, you must be running Android ant. Then, you must run:

    ant release
    

    This will compile the APK, but if you also want to sign it, run:

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore pathtokeystore.keystore pathtounsignedapp.apk alias_name
    

    It will require passwords for the keystore and key. The unsigned apk will be signed in place, and you can just return the apk.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题