googlesamples / googlesamples/unity-jar-resolver

Cannot use it with AndroidX

Open
#145 22 comments 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
C#
Stars
1.5k
Forks
371
Avg merge
14h 21m
Merged PRs (30d)
3

Description

My dependencies are
```



```
*update:* after adding xmlns:tools=”http://schemas.android.com/tools” to the manifest, I am now down to this error:
```
CommandInvokationFailure: Failed to re-package resources.
/home/gabor/Android/Sdk/build-tools/28.0.1/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/home/gabor/Android/Sdk/platforms/android-28/android.jar" -F bin/resources.ap_ --extra-packages com.chartboost.sdk.unity:android.arch.lifecycle:androidx.appcompat:androidx.arch.core:androidx.asynclayoutinflater:.........
/home/gabor/7.2.1/Temp/StagingArea/android-libraries/androidx.appcompat.appcompat-1.0.0-rc01/res/layout/abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
........ (and many similar errors)
```
If I switch from "internal" to "gradle" build system, the error changes to:
`: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/media/MediaBrowserCompat$CallbackHandler;`

Others are also having problems:
- https://stackoverflow.com/questions/51683306/
- https://stackoverflow.com/questions/50697192

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.