白日门客户端源码打包apk教程

这是会折腾很久,主要是配置环境变量,以及打包设置,小编也是经历了各种失败,终于打包成功了。

ad1e25d4f5234901

4a8d5a4446234948

主要的环境软件:

1、安卓SDK

2、NDK

3、ANT

4、Eclipse

5、Cocos3.10

6、Python2.73

7、Java8

01dbb94cad235216

5827b1b4b8235244

正在将 D:\brm\client\frameworks\runtime-src\proj.android\assets\src\main.lua 编译为字节码...
编译完成。
正在执行:'"D:\Android\apache-ant-1.9.7\bin\ant" clean release -f D:\brm\client\frameworks\runtime-src\proj.android\build.xml -Dsdk.dir="D:\Android\android-sdk"'

Buildfile: D:\brm\client\frameworks\runtime-src\proj.android\build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 25.2.5
 [checkenv] Installed at D:\Android\android-sdk

-setup:
     [echo] Project Name: decivise
  [gettype] Project Type: Application

-pre-clean:

clean:
   [delete] Deleting directory D:\brm\client\frameworks\runtime-src\proj.android\bin
   [delete] Deleting directory D:\brm\client\frameworks\runtime-src\proj.android\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
   [subant] No sub-builds to iterate on

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 25.2.5
 [checkenv] Installed at D:\Android\android-sdk

-setup:
     [echo] Project Name: decivise
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 29.0.3
     [echo] Resolving Build Target for decivise...
[gettarget] Project Target:   Android 4.4W.2
[gettarget] API level:        20
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\res
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\rsObj
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\rsLibs
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\gen
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\classes
    [mkdir] Created dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for decivise...
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] Found 1 AIDL files.
     [aidl] Compiling 1 AIDL files.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 42 source files to D:\brm\client\frameworks\runtime-src\proj.android\bin\classes
    [javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
    [javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
    [javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
    [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
    [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    [javac] 3 个警告

-post-compile:

-obfuscate:

-dex:
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\bin\classes
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\yayavoice_libs_20170523.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\org.apache.http.legacy.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\universal-image-loader-1.9.3-SNAPSHOT.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\android-support-v4.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\com.android.vending.expansion.zipfile.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\httpclient-4.4.1.1.jar
      [dex] input: D:\brm\client\frameworks\runtime-src\proj.android\libs\android-async-http-1.4.9.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\yayavoice_libs_20170523.jar -> yayavoice_libs_20170523-6d4a0494e3be6a4768e85502e3475bb0.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\org.apache.http.legacy.jar -> org.apache.http.legacy-c4c0e3ab729313197200ea3cb4b20914.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\universal-image-loader-1.9.3-SNAPSHOT.jar -> universal-image-loader-1.9.3-SNAPSHOT-e16fb3d675ae6bc6b3799c99dc206943.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\android-support-v4.jar -> android-support-v4-95e363b492f422e38612336e17199ee7.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\com.android.vending.expansion.zipfile.jar -> com.android.vending.expansion.zipfile-f15a38217eff5ba8e89924653703b52c.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\httpclient-4.4.1.1.jar -> httpclient-4.4.1.1-99ce3f2fdc0168daa75b1d48f7a63396.jar
      [dex] Pre-Dexing D:\brm\client\frameworks\runtime-src\proj.android\libs\android-async-http-1.4.9.jar -> android-async-http-1.4.9-4c64cb920a16eb166df7288fc8e59ff7.jar
      [dex] Converting compiled files and external libraries into D:\brm\client\frameworks\runtime-src\proj.android\bin\classes.dex...
       [dx] Merged dex #1 (180 defs/193.3KiB)
       [dx] Merged dex #2 (61 defs/106.5KiB)
       [dx] Merged dex #3 (371 defs/436.9KiB)
       [dx] Merged dex #4 (4 defs/15.8KiB)
       [dx] Merged dex #5 (797 defs/844.5KiB)
       [dx] Merged dex #6 (420 defs/241.9KiB)
       [dx] Merged dex #7 (108 defs/139.6KiB)
       [dx] Merged dex #8 (105 defs/150.4KiB)
       [dx] Result is 2046 defs/2621.0KiB. Took 0.3s

-crunch:
   [crunch] Crunching PNG Files in source dir: D:\brm\client\frameworks\runtime-src\proj.android\res
   [crunch] To destination dir: D:\brm\client\frameworks\runtime-src\proj.android\bin\res
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable-hdpi\icon.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-hdpi\icon.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-hdpi\icon.png: 99% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable-ldpi\icon.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-ldpi\icon.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-ldpi\icon.png: 99% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable-mdpi\icon.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-mdpi\icon.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-mdpi\icon.png: 99% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable-xhdpi\icon.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-xhdpi\icon.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-xhdpi\icon.png: 99% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable-xxhdpi\icon.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-xxhdpi\icon.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable-xxhdpi\icon.png: 99% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable\btn_com.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\btn_com.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\btn_com.png: 0% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable\btn_com_sel.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\btn_com_sel.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\btn_com_sel.png: 0% size of source)
   [crunch] Processing image to cache: D:\brm\client\frameworks\runtime-src\proj.android\res\drawable\dialogbg.9.png => D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\dialogbg.9.png
   [crunch]   (processed image to cache entry D:\brm\client\frameworks\runtime-src\proj.android\bin\res\drawable\dialogbg.9.png: 93% size of source)
   [crunch] Crunched 8 PNG files to update cache

-package-resources:
     [aapt] Creating full resource package...

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating decivise-release-unsigned.apk for release...

-post-package:

-release-prompt-for-password:

-release-nosign:

-release-sign:
     [echo] Signing final apk...
 [zipalign] Running zip align on final apk...
     [echo] Release Package: D:\brm\client\frameworks\runtime-src\proj.android\bin\decivise-release.apk
[propertyfile] Creating new property file: D:\brm\client\frameworks\runtime-src\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\brm\client\frameworks\runtime-src\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\brm\client\frameworks\runtime-src\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\brm\client\frameworks\runtime-src\proj.android\bin\build.prop

-post-build:

release:

BUILD SUCCESSFUL
Total time: 1 minute 53 seconds
正在移动 apk 文件 D:\brm\client\publish\android
编译成功。
APK打包成功!
删除加密res文件...!

 

 

 

请登录后发表评论

    没有回复内容