Bug Issue: Android target API 32 (12L) : Failed merge Manifet


Pages: 1

RulezTeam

  • Level 3 Stencyler
August 12, 2022, 11:52:26 am
When I try to compile my game I have this error :

Code: [Select]
[haxelib.exe] Caused by: java.lang.RuntimeException: Manifest merger failed : android:exported needs to be explicitly specified for <activity>. 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/topics/manifest/activity-element#exported for details.

I'm using 4.1.0 b3 11100
« Last Edit: August 12, 2022, 11:53:18 am by RulezTeam »


New attachment added by RulezTeam - August 12, 2022, 02:28:01 pm


RulezTeam

  • Level 3 Stencyler
August 12, 2022, 02:32:08 pm
I've attached log file.
Another question is about target version: why I can choose only 12L ?

I've downloaded all the latest files from Preferences/Android Tools like :
- Platform 32
- Build tools 32

While Platform tools and Tools there is only one choice.

Is this correct ?


Justin

  • Master Stencyler
  • *
August 12, 2022, 09:27:39 pm
Thanks for bringing this up. Somebody mentioned this on discord before, but I forgot about it.

Regarding the target version, what you can select is determined by which platforms you've downloaded (in this case, you only have 32, but you can download others in addition).
  • Status changed from New to Confirmed


Justin

  • Master Stencyler
  • *
August 22, 2022, 05:24:46 pm
This is fixed in 4.1.0-beta3/b11106.
  • Status changed from Confirmed to Resolved
  • Tags added: 4.1.0


RulezTeam

  • Level 3 Stencyler
September 05, 2022, 05:50:24 am
Hi Justin,

I'm on 11111 but I have the same error :
Code: [Select]
From:      stencyl.sw.app.tasks.buildgame.GameBuilder$2

[haxelib.exe] Caused by: java.lang.RuntimeException: Manifest merger failed : android:exported needs to be explicitly specified for <activity>. 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/topics/manifest/activity-element#exported for details.


Justin

  • Master Stencyler
  • *
September 05, 2022, 06:05:50 am
It's possible for the same problem to be present in engine extensions you're using, which will also need to be updated for Android 12+ support. Running without any custom engine extensions should allow the game to compile.

If you post links to the engine extensions you're using, I can try to make any necessary updates.


RulezTeam

  • Level 3 Stencyler
September 05, 2022, 06:41:58 am
Hi,
I'm using two extensions :
- network (in multiplayer extension)
https://community.stencyl.com/index.php/topic,61080.0.html

- scaling utilities
https://community.stencyl.com/index.php/topic,34277.0.html
« Last Edit: September 05, 2022, 06:45:11 am by RulezTeam »


Justin

  • Master Stencyler
  • *
September 05, 2022, 12:45:56 pm
That's odd. Neither of those should have any effect.

Could you upload the following folder?

Code: [Select]
[android builds]\[game name]\app\intermediates\manifest_merge_blame_file
(android builds is what you have set in Preferences > Workspace > Android Builds Path)


RulezTeam

  • Level 3 Stencyler
September 06, 2022, 12:54:54 am
Hi Justin,

in that's folder there is another folder named 'release' but it's empty  :o
« Last Edit: September 06, 2022, 12:56:32 am by RulezTeam »


RulezTeam

  • Level 3 Stencyler
September 06, 2022, 07:31:40 am
Hi,
now I can compile for API32 . It was my fault with AndroidManifest file


Justin

  • Master Stencyler
  • *
September 06, 2022, 07:49:28 am
For other readers, the issue was that RulezTeam has a custom AndroidManifest.xml file based on a previous Stencyl version. Adding android:exported="true" to the main <activity> element in the custom AndroidManifest.xml file fixed it.


Pages: 1

Details

  • Reported
    August 12, 2022, 11:52:26 am
  • Updated
    September 06, 2022, 07:49:28 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Compiling/Testing Games

Tags


Attachments

* LogFile.txt (38.19 kB - downloaded 921 times.)