Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   FireMonkey (https://www.clubdelphi.com/foros/forumdisplay.php?f=50)
-   -   Generar mi APK en mi movil (https://www.clubdelphi.com/foros/showthread.php?t=98093)

lgarcia 20-10-2026 15:41:53

Generar mi APK en mi movil
 
Hola, llevo ya un tiempo desarrollando una APK en Delphi 13 usando FireMonkey, Sqlite y FireDac, la cual en el entorno de Windows funciona perfectamente, logro que mi PC reconozca el dispositivo cuando escojo Android 32-bit pero cuando trato de generar la aplicación me tira el siguiente error en la ventana de mensajes:

Cita:

[PAClient Error] Error: E8712 android:exported needs to be explicitly specified for element <activity#com.embarcadero.firemonkey.FMXNativeActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported`when the corresponding component has an intent filter defined. See https://developer.android.com/guide/...ement#exported for details.
Anteriormente probé con 2 ejemplos y me creo la aplicación sin problemas en el teléfono y corrieron perfectamente.

Saludos
Luis

emailx45 20-10-2026 20:52:46

Código:

        <!--
            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:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout|uiMode"

            android:exported="true"      <-----------  AndroidManifest.template.xml

            android:label="%activityLabel%"
            android:launchMode="singleTask" >

            <!-- Tell NativeActivity the name of our .so -->
            <meta-data
                android:name="android.app.lib_name"
                android:value="%libNameValue%" />

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

...



La franja horaria es GMT +2. Ahora son las 00:55:44.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi