# Error building app using Android native plugin

**URL:** <https://forums.solar2d.com/t/error-building-app-using-android-native-plugin/357546>\
**Category:** Native builds\
**Created:** [September 4, 2025, 2:05am UTC](https://forums.solar2d.com/t/error-building-app-using-android-native-plugin/357546 "2025-09-04T02:05:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfoster4](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/4bbf92/32.png) [@rfoster4](https://forums.solar2d.com/u/rfoster4)\
**Post date:** [September 4, 2025, 2:05am UTC](https://forums.solar2d.com/t/error-building-app-using-android-native-plugin/357546/1 "2025-09-04T02:05:30Z")

</div>

Computer: Mac M3 Pro  
OS: macOS Sequoia 15.5  
Xcode version: 16.3  
Solar2D build: 3722

I’m developing a Solar2D native plugin for Android. The project right now is just the included project template with an AppCompatActivity activity added. The theme of the new activity is set to Theme.AppCompat. I’m able to build the plugin successfully, but when I attempt to build the APK, I get the following error:

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:App:processReleaseResources’.

> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction  
> Android resource linking failed  
> ERROR: \<root\_path\>/.gradle/caches/8.10.2/transforms/2d730aa5ad0fc2f4d14fe6dd52550bc4/transformed/jetified-plugin-release/AndroidManifest.xml:9:9-12:54: AAPT: error: resource style/Theme.AppCompat (aka com.coronalabs.PluginTest:style/Theme.AppCompat) not found.

Why is the build failing? Does Solar2D not support the Theme.AppCompat theme? If not, is there an alternative I can use for adding activities with views?

---

<div class="post-metadata">

**Author:** ![rfoster4](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/4bbf92/32.png) [@rfoster4](https://forums.solar2d.com/u/rfoster4)\
**Post date:** [September 18, 2025, 11:25pm UTC](https://forums.solar2d.com/t/error-building-app-using-android-native-plugin/357546/2 "2025-09-18T23:25:12Z")

</div>

Any thoughts?

---

<div class="post-metadata">

**Author:** ![Scott\_Harrison](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@Scott\_Harrison](https://forums.solar2d.com/u/Scott_Harrison)\
**Post date:** [September 20, 2025, 1:56am UTC](https://forums.solar2d.com/t/error-building-app-using-android-native-plugin/357546/3 "2025-09-20T01:56:36Z")

</div>

Can you post project or dm me the project?
