请选择 进入手机版 | 继续访问电脑版

Lazarus中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Lazarus IDE and 组件 下载地址版权申明
楼主: delphicn

Laz4Android 发布专用帖(1.1,1.3,1.4.4,1.5,1.6,1.8),lazarus安卓开发包

[复制链接]
  • TA的每日心情
    开心
    2018-10-13 09:41
  • 签到天数: 45 天

    [LV.5]常住居民I

    发表于 2014-4-10 15:50:40 | 显示全部楼层
    好东西,收藏了,有时间研究一下这个。
    楼主辛苦,谢谢分享。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-4-12 14:57:41 | 显示全部楼层
    delphicn 发表于 2013-7-23 21:31
    在这个版本中需要设“目标OS”为android.

    生成如何apk呢,简单:

    builder_debug_apk.bat 会call apkbuilder
    找遍所有文件均不见踪影
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-4-12 16:03:57 | 显示全部楼层
    tigerA15 发表于 2014-4-12 14:57
    builder_debug_apk.bat 会call apkbuilder
    找遍所有文件均不见踪影

    已经搞定了,是因为我的SDK比较新,apkbuilder.bat已经废除了。。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-7-8 14:25:02 | 显示全部楼层
    感谢delphicn大辛苦的制作分享~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-9-8 21:22:57 | 显示全部楼层
    本帖最后由 greenzyzyzy 于 2014-9-8 21:27 编辑


    我的出现这个怎么办?前面那个generate_debug_key.bat通过了。这个是build_debug_apk.bat



    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$1.class
    ...while processing com/pascal/lcltest/LCLActivity$1.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$2.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$2.class
    ...while processing com/pascal/lcltest/LCLActivity$2.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$3.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$3.class
    ...while processing com/pascal/lcltest/LCLActivity$3.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$4.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$4.class
    ...while processing com/pascal/lcltest/LCLActivity$4.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$5.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$5.class
    ...while processing com/pascal/lcltest/LCLActivity$5.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$6.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$6.class
    ...while processing com/pascal/lcltest/LCLActivity$6.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$7.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$7.class
    ...while processing com/pascal/lcltest/LCLActivity$7.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$8.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$8.class
    ...while processing com/pascal/lcltest/LCLActivity$8.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$LCLInputConnection.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$LCLInputConnection.class
    ...while processing com/pascal/lcltest/LCLActivity$LCLInputConnection.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$LCLRunnable.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$LCLRunnable.class
    ...while processing com/pascal/lcltest/LCLActivity$LCLRunnable.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$LCLSurface.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$LCLSurface.class
    ...while processing com/pascal/lcltest/LCLActivity$LCLSurface.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$LCL_ListViewAdapter.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$LCL_ListViewAdapter.class
    ...while processing com/pascal/lcltest/LCLActivity$LCL_ListViewAdapter.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity$LCL_ListViewItem.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity$LCL_ListViewItem.class
    ...while processing com/pascal/lcltest/LCLActivity$LCL_ListViewItem.class
    processing E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\classes
    \.\com\pascal\lcltest\LCLActivity.class...

    trouble processing:
    bad class file magic (cafebabe) or version (0034.0000)
    ...while parsing com/pascal/lcltest/LCLActivity.class
    ...while processing com/pascal/lcltest/LCLActivity.class
    14 warnings
    no classfiles specified

    E:\lazarusandroid\laz4android\examples\androidlcl\android>REM Now build the unsi
    gned APK

    E:\lazarusandroid\laz4android\examples\androidlcl\android>del E:\lazarusandroid\
    laz4android\examples\androidlcl\android\\bin\androidlcltest-unsigned.apk

    E:\lazarusandroid\laz4android\examples\androidlcl\android>call apkbuilder E:\laz
    arusandroid\laz4android\examples\androidlcl\android\\bin\androidlcltest-unsigned
    .apk -v -u -z E:\lazarusandroid\laz4android\examples\androidlcl\android\\bin\and
    roidlcltest.ap_ -f E:\lazarusandroid\laz4android\examples\androidlcl\android\\bi
    n\classes.dex

    THIS TOOL IS DEPRECATED. See --help for more information.

    java.io.FileNotFoundException: E:\lazarusandroid\laz4android\examples\androidlcl
    \android\bin\classes.dex does not exist
    找不到 E:\lazarusandroid\laz4android\examples\androidlcl\android\bin\androidlclt
    est-unaligned.apk
    jarsigner 错误: java.lang.RuntimeException: 密钥库加载: Keystore was tampered wi
    th, or password was incorrect
    Unable to open 'bin\androidlcltest-unaligned.apk' as zip archive
    请按任意键继续. . .


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-9-8 22:17:46 | 显示全部楼层
    忘了说下我的NDK是android-ndk-r9d
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-9-14 19:06:12 | 显示全部楼层
    改用java1.6.x(不要用java1.7.x),
    將原來用1.7.x 編譯的*.class殺乾淨
    重新在java1.6.x環境下,
    build_debug_apk.bat重新編譯看看~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-9-17 12:19:25 | 显示全部楼层
    反應一下,
    當我用Laz4Android (Laz1.3+FPC2.7.1+NDK9d) 編譯 ARM Android (不確定i386的會不會) 的so檔時,
    若是有用到Classes單元內相關的類別,例如TStringList或是TStringStream,當JNI調用時該函式時會閃退,
    但是該code用舊版的(Laz1.1+FPC2.5.1)編就能正常執行,有人有類似的問題嗎?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-9-26 18:33:44 | 显示全部楼层
    chenyuchih 发表于 2014-9-17 12:19
    反應一下,
    當我用Laz4Android (Laz1.3+FPC2.7.1+NDK9d) 編譯 ARM Android (不確定i386的會不會) 的so檔時 ...

    据说新版的SDK还是NDK缺少apkbuilder.bat怎么办呢?不提供支持了吗?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2014-10-5 13:52:51 | 显示全部楼层
    学习学习,谢谢作者.
    回复 支持 反对

    使用道具 举报

    QQ|手机版|小黑屋|Lazarus中国|Lazarus中文社区 ( 鄂ICP备16006501号-1

    GMT+8, 2019-7-23 23:49 , Processed in 0.107906 second(s), 19 queries .

    Powered by Discuz! F1.0 Build 20160930

    © 2001-2019 Comsenz Inc. & Discuz! Fans

    快速回复 返回顶部 返回列表