You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Delphi 12.1 CE开发Android 14应用稳定性问题求助

Delphi 12.1 CE开发Android 14应用启动崩溃问题求助

一年前我曾成功使用Delphi 11 CE开发Android 14应用。一周前我在全新安装的Win11系统(原本无Java环境)中安装了最新的Delphi 12.1 Community Edition,安装程序顺利完成Android平台配置。

但目前即使是最简单的Android应用在Android 14设备上也无法稳定运行。例如我创建一个基于MasterDetail模板的多设备应用项目,尝试运行时出现以下问题:

Android 14 / Realme GT 2 Pro

我尝试了SDK 25.2.5、SDK 35.0.2,以及32位、64位架构,均无法正常运行:

  • 64位+SDK35:应用安装后启动,数秒后因exception class 10崩溃;
  • 32位+SDK25:应用安装后启动,数秒后因Segmentation fault 11崩溃;
  • 在项目源码的Application.Initialize处设置调试断点,程序要么在到达断点前崩溃,要么不触发断点。

Android 9 / Samsung S8

两种SDK、两种架构下均运行正常,调试功能也能正常工作。

附AndroidManifest.xml代码:

<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.embarcadero.MasterDetailApplication"
    android:versionCode="1"
    android:versionName="1.0.0"
    android:installLocation="preferExternal">
    <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="34" />
    <uses-permission android:name="android.permission.INTERNET" />

    <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
    <queries>

    </queries>
    <application
        android:persistent="False"
        android:restoreAnyVersion="False"
        android:label="MasterDetailApplication"
        android:debuggable="true"
        android:largeHeap="False"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme"
        android:hardwareAccelerated="true"
        android:resizeableActivity="true"
        android:requestLegacyExternalStorage="true">



        <!-- Trigger Google Play services to install the backported photo picker module. -->
        <service
            android:name="com.google.android.gms.metadata.ModuleDependencies"
            android:enabled="false"
            android:exported="false"
            tools:ignore="MissingClass">
            <intent-filter>
                <action android:name="com.google.android.gms.metadata.MODULE_DEPENDENCIES" />
            </intent-filter>

            <meta-data android:name="photopicker_activity:0:required" android:value="" />
        </service>

        <!-- Our activity is a subclass of the built-in NativeActivity framework class.
             This will take care of integrating with our NDK code. -->
        <activity
            android:name="com.embarcadero.firemonkey.FMXNativeActivity"
            android:exported="true"
            android:label="MasterDetailApplication"
            android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout|uiMode"
            android:launchMode="singleTask">
            <!-- Tell NativeActivity the name of our .so -->
            <meta-data android:name="android.app.lib_name" android:value="MasterDetailApplication" />

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <receiver android:name="com.embarcadero.rtl.notifications.NotificationAlarm" />

    </application>
</manifest>
<!-- END_INCLUDE(manifest) -->

恳请各位提供帮助,谢谢!

内容的提问来源于stack exchange,提问作者user2160569

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 16:20:19