googlesamples / googlesamples/unity-jar-resolver
error: resource android:attr/IStar not found
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 371
- Avg merge
- 14h 21m
- Merged PRs (30d)
- 3
Description
* Unity editor version: 2021.2.7f1
* External Dependency Manager version: 1.2.168
* Source you installed EDM4U: .unitypackage
* * Features in External Dependency Manager in use: Android Resolver
* Plugins SDK in use: Only my custom Kotlin plugin
* Platform you are using the Unity editor on: Mac (M1 Pro)
### [REQUIRED] Please describe the issue here:
I'm developing an Android Bluetooth plugin for Unity using Kotlin. I included the `.aar` file of my Kotlin library (which works perfectly in an app running in Android Studio), and since I was getting some dependency errors in runtime, I started using the [Android Dependency Resolver plugin](https://github.com/googlesamples/unity-jar-resolver).
I started by adding the dependencies that my library had on its `.gradle` file:
```
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
// For Kotlin Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
```
To my library's `*Dependencies.xml`, as instructed [here](https://github.com/googlesamples/unity-jar-resolver#android-resolver-usage) by the Dependency Resolver:
```
https://repo.maven.apache.org/maven2
extra-google-m2repository
https://maven.google.com
extra-google-m2repository
https://maven.google.com
extra-google-m2repository
https://maven.google.com
```
The Dependency Resolver works and does it's job, but then when I try to compile the project I get the error:
```
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/myuser/.gradle/caches/transforms-2/files-2.1/f243f87f287fb4f4052bd069a9b71980/androidx.core.core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
```
I provide the `.aar` if you need it to reproduce the error.
#### Please answer the following, if applicable:
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
Add my custom library's `.aar` and its `*Dependencies.xml` file and run de Resolver, then compile.
[gravrblelibrary-debug.aar.zip](https://github.com/googlesamples/unity-jar-resolver/files/7766818/gravrblelibrary-debug.aar.zip)
Contributor guide
Assessment
This issue has not been assessed yet.