Delphi10.4.2关于Android设备调试

编程知识 更新时间:2023-04-17 19:11:00

Delphi10.4.2关于Android设备调试

1、弄清楚自己的设备CPU架构(与指令集有关)及其出厂的Android版本

          https://blog.csdn/pulledup/article/details/115317548

2、Delphi10.4.2对Android版本的支持

2.1、支持的平台及其操作系统版本

          详见本博客博文:

          https://blog.csdn/pulledup/article/details/108139748

2.2、关于PDA等嵌入式设备      

2.2.1、PDA在买的时候,就要问清楚,它最高所支持的Android版本。

2.2.2、一般:嵌入式设备,因为设备CPU版本的指令集所限,目前厂家一般都只能支持:Android 5、Android 6、最多Android7。当然:也有高端CPU设备, 散热、节能,也支持高版本Android,但那是成本呀。

2.2.3、有些PDA甚至手机型号:  有可能设备厂家修改了Android内核的。Google已经在查这些修改Android内核的设备厂家了,希望今后有好转。

          所以:如果开发这些PDA,最好在D10.3.3下做.

3、Delphi10.4.2下Android SDK及其对应的Deployment中对应的必要配置

3.1、理论

         SDK Manager

         http://docwiki.embarcadero/RADStudio/Sydney/en/SDK_Manager

         Running Your Android Application on an Android Device

         http://docwiki.embarcadero/RADStudio/Sydney/en/Running_Your_Android_Application_on_an_Android_Device

         Troubleshooting: Cannot Run on an Android Device

         http://docwiki.embarcadero/RADStudio/Sydney/en/Troubleshooting:_Cannot_Run_on_an_Android_Device

3.2、实战

         Call Stack出来了:就可以Debug啦:

必备的几个配置:

3.2.1、Target目标设备要能找到

         前提:

         3.2.1.1、数据线(最好原厂产品;若有破损请购置新的),而非充电线。

         3.2.1.2、设备驱动以使适配的ADB接口生效(厂方官网的技术或服务板块一般都提供下载)

         ADB是什么:Android Debug Bridge,就是调试桥

         https://baike.baidu/item/ADB/23427792

         3.2.1.3、Android设备的开发者选项的基本设置

3.2.2、签名要唯一

         如果你改变了项目名称,请重新配置签名,否则有可能你手机上存在两个Apk,它们的签名都一样,调试器是不识别的。

        如果重名了,请手动清除手机上的Apk安装,并Clear一下,在重新编译:

        上述配置的签名,在版本控制处,也好设置一致,否则会报错:

         这样就不行,得:com.pulledup.$(ModuleName)

 

3.2.3、必要的分发文件Deployment Manager

         3.2.3.1、 AndroidManifest.xml

          3.2.3.2、 classes.dex

         这个千万不能错,不能使用D:\Delphi10.4Update2\lib\android\debug\classes.dex,而要使用你的Configuration下对应的(Debug或你没有调试是在发布产品Release)Compile编译后生成的目录下的classes.dex。

           3.2.3.3、 gdbserver

         它是你的远程本机PAServer对应的开发端的PAClient进行Socket通讯必须的中间件缓存数据库,不能漏掉。

         上图两个均有效,但需要注意的是,Delphi10.4.2的Android SDK分发包PlatformSDKs安装后的路径Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461下,NDK指向有问题,导致Debug调试时DCC代码的默认路径指向冲突:


d:\delphi10.4update2\bin\CodeGear.Deployment.targets(585,5): warning : 
Local file "D:\Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461\android-ndk-r21prebuilt\android-arm\gdbserver\gdbserver" not found. 
Skipping deployment.

          应当改配置为:

           3.2.3.4、 下面几个.so动态库,路径、取名均不能错、不能漏:

           它们分别代表了,不同CPU架构下Android所适配的指令集的API。 错了或漏了的话,有些设备能运行、有些设备就不能Run。

           Android 64的AAR问题,不再本文讨论,详见:

           https://blog.csdn/pulledup/article/details/114365786

           https://blog.csdn/pulledup/article/details/114579951

           3.2.3.5、 Android本机文件提供者

           Android 10后,JNI本机文件访问,需要它:

3.2.4、客制化附加的分发文件Deployment Manager

           如果你的Apk依赖于某些外部文件,它们的命名和路径必须正确,否则应用会闪退。 比如:

            又比如,Sqlite3本地缓存数据库和INI配置文件等:

4、开发者常见的困惑问题

4.1、安装并Launch启动后,手机PAServer想IDE返回失败的调试信息:

 提问如下:

        发布运行任何一个程序(即或空白),DelPhi XE都出现这个错误,这样导致我不能调试安卓程序
        环境:一台win10 2009,一台Win10 21H1 ,都是X64
        开发工具:RadStudio XE 10.4.2 ,安装正确、安卓SDK、补丁包安装也正确

Unable to create process: Unable to install '<path>'. Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
Unable to create process: Could not find program, '<path>'

 Application store的配置(configuration)下,IDE一直处于Launching状态不消失,点取消后:

Unable to start gdbserver on port <n>: Port is already in use

原因:

        4.1.1、 还是回到“1、弄清楚自己的设备CPU架构(与指令集有关)及其出厂的Android版本”,看看你的设备处理器适配的编译器及其ADB调试桥的默认的驱动版本:

        ARM32即可用Android 32-bit也可用Android 64-bit的Target Platfrom目标平台编译器dccaarm64.exe或dccaarm.exe进行Target _PasCoreCompile目标编译输出.so;

        ARM64只能用Android 64-bit的Target Platfrom目标平台编译器dccaarm64.exe进行Target _PasCoreCompile目标编译输出.so;

        4.1.2、 事实上,它们对应的Target BuildClassesDex:AdoptOpenJDK生成的classes.dex分发二进制文件也是不一样的;Target BuildVersionResource:cgrc.exe生成的版本临时资源文件.vrc和.res目标版本资源文件也不一样。

        4.1.3、 然后,问题就回到了“3.2.3、必要的分发文件Deployment Manager”,分发的结果文件就不一样啦。

        4.1.4、 而以上,均为目标平台调试器Target Debugger所必须匹配的。

找了一台华为Mate 30 Pro:  ARM64机器:

         4.1.5、 目标编译和分发过程如下:


Build started 2021-07-28 21:56:03.
__________________________________________________
Project "D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\TongYongJieMian104.dproj" (Make target(s)):
Target BuildClassesDex:
    PATH C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin;D:\Delphi10.4Update2\bin;D:\Delphi10.4Update2\bin64;C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin;D:\Delphi10.4Update0\bin;C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl;D:\Delphi10.4Update0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl\Win64;C:\ProgramData\Oracle\Java\javapath;D:\Delphi10.4Update2\bin;C:\Users\Administrator\Documents\Embarcadero\Studio\21.0\Bpl;D:\Delphi10.4Update2\bin64;C:\Users\Administrator\Documents\Embarcadero\Studio\21.0\Bpl\Win64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl;C:\Users\Administrator\AppData\Local\GitHubDesktop\bin;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.bpl; & set JAVA_HOME=C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot& "D:\Delphi10.4Update2\PlatformSDKs\AndroidSDK-2525-21.0.38860.1461\build-tools\29.0.3\dx.bat" --dex --output="D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\Android64\Debug\classes.dex" "d:\delphi10.4update2\lib\android\Debug\android-support-v4.dex.jar" "d:\delphi10.4update2\lib\android\Debug\fmx.dex.jar" "D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\Android64\Debug\SystemBar-dexed.jar"
    Merged dex #1 (3 defs/11.7KiB)
    Merged dex #2 (680 defs/848.4KiB)
    Merged dex #3 (108 defs/112.6KiB)
    Result is 791 defs/1183.0KiB. Took 0.2s
Target BuildVersionResource:
    d:\delphi10.4update2\bin\cgrc.exe -c65001 TongYongJieMian104.vrc -foTongYongJieMian104.res 
    CodeGear Resource Compiler/Binder
    Version 1.2.2 Copyright (c) 2008-2012 Embarcadero Technologies Inc.
    
    Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
    
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    
    Deleting file "TongYongJieMian104.vrc".
Target _PasCoreCompile:
    d:\delphi10.4update2\bin\dccaarm64.exe -$O- --no-config -M -Q -TX.so -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults -DDEBUG -E.\Android64\Debug -Id:\delphi10.4update2\lib\Android64\debug;GYunits;Delphi10.4Update2_FixedDelphiPas;D:\DelphiProjs\PulledupUI\GYListView27D1042_20210228\DCU\FMX\XE10\Android64\Release;d:\delphi10.4update2\lib\Android64\Release;C:\Devart\UniDACRAD10.4\unidac_8.3.2_d27\Lib\Android64;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcp;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcu;GYunits;Delphi10.4Update2_FixedDelphiPas;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules -LEC:\Users\Public\Documents\Embarcadero\Studio\21.0\Bpl\Android64 -LNC:\Users\Public\Documents\Embarcadero\Studio\21.0\Dcp\Android64 -NU.\Android64\Debug -NSSystem;Xml;Data;Datasnap;Web;Soap; -OGYunits;Delphi10.4Update2_FixedDelphiPas;D:\DelphiProjs\PulledupUI\GYListView27D1042_20210228\DCU\FMX\XE10\Android64\Release;d:\delphi10.4update2\lib\Android64\Release;C:\Devart\UniDACRAD10.4\unidac_8.3.2_d27\Lib\Android64;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcp;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcu;GYunits;Delphi10.4Update2_FixedDelphiPas;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules -RGYunits;Delphi10.4Update2_FixedDelphiPas;D:\DelphiProjs\PulledupUI\GYListView27D1042_20210228\DCU\FMX\XE10\Android64\Release;d:\delphi10.4update2\lib\Android64\Release;C:\Devart\UniDACRAD10.4\unidac_8.3.2_d27\Lib\Android64;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcp;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcu;GYunits;Delphi10.4Update2_FixedDelphiPas;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules -Ud:\delphi10.4update2\lib\Android64\debug;GYunits;Delphi10.4Update2_FixedDelphiPas;D:\DelphiProjs\PulledupUI\GYListView27D1042_20210228\DCU\FMX\XE10\Android64\Release;d:\delphi10.4update2\lib\Android64\Release;C:\Devart\UniDACRAD10.4\unidac_8.3.2_d27\Lib\Android64;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcp;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules\.dcu;GYunits;Delphi10.4Update2_FixedDelphiPas;C:\Users\Administrator\.boss\modules\internal.23e97d2533813333d79a525460940e43\modules --libpath:D:\Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\sources\cxx-stl\llvm-libc++\libs\arm64-v8a;D:\Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\platforms\android-23\arch-arm64\usr\lib --linker:D:\Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe -V -VN -NO.\Android64\Debug  TongYongJieMian104.dpr   
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:18.26
Build started 2021-07-28 21:56:21.
__________________________________________________
Project "D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\TongYongJieMian104.dproj" (Deploy target(s)):
Target _CleanRemoteDir:
    Cleaning APK Output Directory:  .\Android64\Debug\TongYongJieMian104
    d:\delphi10.4update2\bin\paclient.exe -u8 --Clean=".\Android64\Debug\TongYongJieMian104,D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\TongYongJieMian104._@emb_.tmp"  
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Deleting file(s)...
    Total file(s) deleted: 2 file(s)  3 dir(s)
    Deleting file "D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\TongYongJieMian104._@emb_.tmp".
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\426x320.png,.\Android64\Debug\TongYongJieMian104\res\drawable-small\,1,splash_image.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\classes.dex,.\Android64\Debug\TongYongJieMian104\classes\,1,classes.dex" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  1,211,440 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\72x72.png,.\Android64\Debug\TongYongJieMian104\res\drawable-hdpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\960x720.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xlarge\,1,splash_image.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\48x48.png,.\Android64\Debug\TongYongJieMian104\res\drawable-mdpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\notification_96x96.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xxxhdpi\,1,ic_notification.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="d:\delphi10.4update2\bin\Artwork\Android\FM_LauncherIcon_192x192.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xxxhdpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\libTongYongJieMian104.so,.\Android64\Debug\TongYongJieMian104\library\lib\arm64-v8a\,1,libTongYongJieMian104.so" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  233,228,624 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\144x144.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xxhdpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\styles.xml,.\Android64\Debug\TongYongJieMian104\res\values\,1,styles.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  301 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="d:\delphi10.4update2\lib\android\debug\mips\libnative-activity.so,.\Android64\Debug\TongYongJieMian104\library\lib\mips\,1,libTongYongJieMian104.so" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\splash_image_def.xml,.\Android64\Debug\TongYongJieMian104\res\drawable\,1,splash_image_def.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  381 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\styles-v21.xml,.\Android64\Debug\TongYongJieMian104\res\values-v21\,1,styles.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  324 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\470x320.png,.\Android64\Debug\TongYongJieMian104\res\drawable-normal\,1,splash_image.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\96x96.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xhdpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="d:\delphi10.4update2\lib\android\debug\armeabi-v7a\libnative-activity.so,.\Android64\Debug\TongYongJieMian104\library\lib\armeabi-v7a\,1,libTongYongJieMian104.so" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\AndroidManifest.xml,.\Android64\Debug\TongYongJieMian104\,1,AndroidManifest.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  8,743 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\strings.xml,.\Android64\Debug\TongYongJieMian104\res\values\,1,strings.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  123 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\notification_48x48.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xhdpi\,1,ic_notification.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="d:\delphi10.4update2\lib\android\debug\armeabi\libnative-activity.so,.\Android64\Debug\TongYongJieMian104\library\lib\armeabi\,1,libTongYongJieMian104.so" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\provider_paths.xml,.\Android64\Debug\TongYongJieMian104\res\xml\,1,provider_paths.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  486 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\notification_24x24.png,.\Android64\Debug\TongYongJieMian104\res\drawable-mdpi\,1,ic_notification.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\36x36.png,.\Android64\Debug\TongYongJieMian104\res\drawable-ldpi\,1,ic_launcher.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\640x480.png,.\Android64\Debug\TongYongJieMian104\res\drawable-large\,1,splash_image.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\notification_36x36.png,.\Android64\Debug\TongYongJieMian104\res\drawable-hdpi\,1,ic_notification.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="图标\notification_72x72.png,.\Android64\Debug\TongYongJieMian104\res\drawable-xxhdpi\,1,ic_notification.png" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 0 file(s)  0 bytes
Target _DeployFiles:
    d:\delphi10.4update2\bin\paclient.exe -u8 --put="Android64\Debug\colors.xml,.\Android64\Debug\TongYongJieMian104\res\values\,1,colors.xml" 
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
    Copying file(s)...
    Total file(s) copied: 1 file(s)  183 bytes
Target __CreateAPKDirs:
    Creating directory ".\Android64\Debug\TongYongJieMian104\bin".
    Creating directory ".\Android64\Debug\TongYongJieMian104\assets".
Target __StripOutputFiles:
    Creating directory ".\Android64\Debug\TongYongJieMian104\debug".
    Copying file from "D:\DelphiProjs\PulledupUI\GY_TonggyongJianMianSheJiV43_D1042_20210307\Android64\Debug\libTongYongJieMian104.so" to ".\Android64\Debug\TongYongJieMian104\debug\libTongYongJieMian104.so".
    d:\delphi10.4update2\bin\paclient.exe -u8 --stripdebug="D:\Delphi10.4Update2\PlatformSDKs\AndroidNDK-21-21.0.38860.1461\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\strip.exe,.\Android64\Debug\TongYongJieMian104\debug\libTongYongJieMian104.so,.\Android64\Debug\TongYongJieMian104\library\lib\arm64-v8a\libTongYongJieMian104.so"  
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
Target _AndroidPackaging:
    d:\delphi10.4update2\bin\paclient.exe -u8 --aaptpackage="D:\Delphi10.4Update2\PlatformSDKs\AndroidSDK-2525-21.0.38860.1461\build-tools\29.0.3\aapt.exe,.\Android64\Debug\TongYongJieMian104\library,.\Android64\Debug\TongYongJieMian104\classes,.\Android64\Debug\TongYongJieMian104\res,.\Android64\Debug\TongYongJieMian104\assets,.\Android64\Debug\TongYongJieMian104\AndroidManifest.xml,D:\Delphi10.4Update2\PlatformSDKs\AndroidSDK-2525-21.0.38860.1461\platforms\android-29\android.jar,.\Android64\Debug\TongYongJieMian104\bin\TongYongJieMian104-unsigned.apk"  
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
Target _AndroidSign:
    d:\delphi10.4update2\bin\paclient.exe -u8 --jarsign="C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\JarSigner.exe,.\Android64\Debug\TongYongJieMian104\bin\TongYongJieMian104-unsigned.apk,androiddebugkey,C:\Users\Administrator\AppData\Roaming\Embarcadero\BDS\21.0\debug.keystore,MD5withRSA,SHA-256,android,android"  
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
Target _AndroidZipAlign:
    d:\delphi10.4update2\bin\paclient.exe -u8 --zipalign="D:\Delphi10.4Update2\PlatformSDKs\AndroidSDK-2525-21.0.38860.1461\build-tools\29.0.3\zipalign.exe,.\Android64\Debug\TongYongJieMian104\bin\TongYongJieMian104-unsigned.apk,.\Android64\Debug\TongYongJieMian104\bin\TongYongJieMian104.apk,4"  
    Platform Assistant Client  Version 12.2.10.3
    Copyright (c) 2010-2021 Embarcadero Technologies, Inc.
    
Target __DeleteUnsignedAPKFile:
    Deleting file ".\Android64\Debug\TongYongJieMian104\bin\TongYongJieMian104-unsigned.apk".
Build succeeded.
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:23.63

4.2、注意Android 7很特殊不能调试的

        跟Google发布Android 7时的失误有关。

......遇到同事或业内同仁有更多的问题后,再补充......

            好久没写了,最近懒得很。

喜欢的话,就在下面点个赞、收藏就好了,方便看下次的分享:

更多推荐

Delphi10.4.2关于Android设备调试

本文发布于:2023-04-14 03:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/bb8cdcacebbc96010707e7afa1448e82.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设备   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 74462文章数
  • 14阅读数
  • 0评论数