# Support of AndroidX for native PlugIns?

**URL:** <https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765>\
**Category:** Native builds\
**Created:** [November 19, 2020, 7:50pm UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765 "2020-11-19T19:50:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mt0](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mt0](https://forums.solar2d.com/u/mt0)\
**Post date:** [November 19, 2020, 7:50pm UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765/1 "2020-11-19T19:50:35Z")

</div>

Hi all,

when will there be a support for AndroidX?

My planned PlugIn is depending on a 3rd party SDK which uses AndroidX.  
I inlcuded all required dependecies like  
_`implementation "androidx.appcompat:appcompat:1.2.0"`_

But when it comes to Build the Android version through Corona Simulator, the log lists a lot of errors regarding attr:xxx, style:xxx not found. All those styles are coming with androidx.appcompat.

I am using the latest Project Template “2020.3627” and the code is running welll within the Android Studio using the app provided by the project template.

I am clueless how to solve this issue, so any hint is appreciated.  
Markus

```
2: Task failed with an exception.
                -----------
                * What went wrong:
                Execution failed for task ':App:processReleaseResources'.
                > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
                   > Android resource linking failed
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:333:5-338:13: AAPT: error: style attribute 'attr/colorAccent (aka de.explorative.solar2d.bluecode.BlueCodeTest:attr/colorAccent)' not found.
                         
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:333:5-338:13: AAPT: error: style attribute 'attr/colorPrimary (aka de.explorative.solar2d.bluecode.BlueCodeTest:attr/colorPrimary)' not found.
                         
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:333:5-338:13: AAPT: error: style attribute 'attr/colorPrimaryDark (aka de.explorative.solar2d.bluecode.BlueCodeTest:attr/colorPrimaryDark)' not found.
                         
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:360:5-365:13: AAPT: error: style attribute 'attr/windowActionBar (aka de.explorative.solar2d.bluecode.BlueCodeTest:attr/windowActionBar)' not found.
                         
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:370:5-372:13: AAPT: error: style attribute 'attr/colorAccent (aka de.explorative.solar2d.bluecode.BlueCodeTest:attr/colorAccent)' not found.
                         
                     /Users/markusthies/.gradle/caches/transforms-2/files-2.1/70d3a7826a07d7707acde11f18323222/jetified-plugin-release/res/values/values.xml:557:5-561:13: AAPT: error: resource style/ThemeOverlay.AppCompat.Light (aka de.explorative.solar2d.bluecode.BlueCodeTest:style/ThemeOverlay.AppCompat.Light) not found.

```

This is my gradle build definition (project):

```
dependencies {
    classpath("com.android.tools.build:gradle:4.1.1")
    classpath("com.beust:klaxon:5.0.1")
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
    classpath("com.kezong:fat-aar:1.2.20")
}

```

This is my gradle build definition (:plugin):

```
dependencies {
implementation ':Corona@aar'

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.appcompat:appcompat:1.2.0-alpha03"
implementation "androidx.percentlayout:percentlayout:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.multidex:multidex:2.0.0'

implementation "com.google.android.material:material:1.0.0"

implementation 'com.wang.avi:library:2.1.3'

embed "at.bluecode.sdk:ui:$VersionBlueCodeSDK"
embed "at.bluecode.sdk:token:$VersionBlueCodeSDK"
embed "at.bluecode.sdk:bluetooth:$VersionBlueCodeSDK"
embed "at.bluecode.sdk:core:$VersionBlueCodeSDK"
embed "at.bluecode.sdk:core-network:$VersionBlueCodeSDK"

// Kotlin Standard Library
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// kotlin reflection
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
```

---

<div class="post-metadata">

**Author:** ![mt0](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mt0](https://forums.solar2d.com/u/mt0)\
**Post date:** [November 20, 2020, 10:27am UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765/2 "2020-11-20T10:27:07Z")

</div>

In addition to the question above, this topic is also related to multiple AAR files (please see my other question: [Plugin depends on multiple frameworks (AAR files)](https://forums.solar2d.com/t/plugin-depends-on-multiple-frameworks-aar-files/352747)).

But that one I guess could be solved by using a special plugin (com.kezong:fat-aar:1.2.20) which produces one fat aar file out of the dependencies.

---

<div class="post-metadata">

**Author:** ![mt0](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mt0](https://forums.solar2d.com/u/mt0)\
**Post date:** [November 23, 2020, 5:22pm UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765/3 "2020-11-23T17:22:35Z")

</div>

No need for a fat-aar file 🙂

I got feedback from @vlads to easily add all dependecies even AndroidX dependencies.

Currently I am updating the documentation of the Corona-Site and create Pull-Request, so that this information is available to the community.

---

<div class="post-metadata">

**Author:** ![k.szczesny](https://forums.solar2d.com/user_avatar/forums.solar2d.com/k.szczesny/32/939_2.png) [@k.szczesny](https://forums.solar2d.com/u/k.szczesny)\
**Post date:** [December 1, 2020, 9:12pm UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765/4 "2020-12-01T21:12:26Z")

</div>

Would you mind sharing this feedback?  
Trying to migrate the project and there’s a lot of stuff (like for example facebook plugin on android) which won’t build due to dependencies (android x).

---

<div class="post-metadata">

**Author:** ![mt0](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mt0](https://forums.solar2d.com/u/mt0)\
**Post date:** [December 2, 2020, 8:52am UTC](https://forums.solar2d.com/t/support-of-androidx-for-native-plugins/352765/5 "2020-12-02T08:52:51Z")

</div>

Sure, in the mean time the document is already updated. So all information I got to resolve (my) issues are now part of the documentation:

Please see here: [https://docs.coronalabs.com/native/android/index.html](https://docs.coronalabs.com/native/android/index.html)

In case, you are succeeding, give me a DM.
