Skip to content

[Feature Request] unity-jar-resolver fails from the format 'groupId:artifactId:version:classifier' #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bhbac-nhnent opened this issue Dec 7, 2020 · 7 comments

Comments

@bhbac-nhnent
Copy link

bhbac-nhnent commented Dec 7, 2020

[REQUIRED] Please fill in the following fields:

  • Unity editor version: Unity5.6.7f1 ~ 2020.1.11f1
  • External Dependency Manager version: Tested 1.2.61.0 ~ 1.2.162
  • Source you installed EDM4U: firebase_unity_sdk_7.0.0/dotnet4/FirebaseMessaging.unitypackage
  • Features in External Dependency Manager in use: Android Resolver
  • Plugins SDK in use: Firebase
  • Platform you are using the Unity editor on: Windows 10 64bit

[REQUIRED] Please describe the issue here:

Hi.

unity-jar-resolver supports only the 'organization(groupId):package(artifactId):version' format libraries as in the comment below.
#186 (comment)

However, there is also a library in the form of 'groupId:artifactId:version:classifier' like the weibo sdk below.
https://github.com/sinaweibosdk/weibo_android_sdk#3-%E9%9B%86%E6%88%90sdk

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://dl.bintray.com/thelasterstar/maven/" }
    }
}
compile 'com.sina.weibo.sdk:core:4.4.3:openDefaultRelease@aar'
  1. There is no way I can define weibo sdk in MyDependencies.xml.
  2. If a library called 'A' depends on weibo sdk, if A is declared in MyDependencies.xml, unity-jar-resolver returns an error like this:
Reporting analytics data: /androidresolver/resolve/gradle/failed?autoResolution=False&useGradleDaemon=False&installAndroidPackages=True&explodeAars=True&patchAndroidManifest=True&patchMainTemplateGradle=True&localMavenRepoDir=Assets%2FGeneratedLocalRepo&useJetifier=True&gradleBuildEnabled=True&gradleTemplateEnabled=False&projectExportEnabled=False&androidAbis=armeabi-v7a&gradleVersion=5.6.4&androidGradlePluginVersion=3.6.0&numRequestedPackages=7&numMissingPackages=1&unityVersion=2020.1.11f1&unityPlatform=WindowsEditor&installSource=unitypackage&version=1.2.162&scope= 'Android Resolver: Gradle Resolve Failed'
ERROR: Resolution failed

Failed to fetch the following dependencies:
com.sina.weibo.sdk:core:+


Reporting analytics data: /androidresolver/resolve/failed?autoResolution=False&useGradleDaemon=False&installAndroidPackages=True&explodeAars=True&patchAndroidManifest=True&patchMainTemplateGradle=True&localMavenRepoDir=Assets%2FGeneratedLocalRepo&useJetifier=False&gradleBuildEnabled=True&gradleTemplateEnabled=False&projectExportEnabled=False&androidAbis=armeabi-v7a&gradleVersion=5.6.4&androidGradlePluginVersion=3.6.0&numRequestedPackages=7&unityVersion=2020.1.11f1&unityPlatform=WindowsEditor&installSource=unitypackage&version=1.2.162&scope= 'Android Resolver: Resolve Failed'
Resolution Failed.

Resolution failed

Failed to fetch the following dependencies:
com.sina.weibo.sdk:core:+


UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1053)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey9:<>m__0(Boolean, String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1911)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey9:<>m__4() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1978)
Google.RunOnMainThread:ExecuteNext() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

I think this is a bug in unity-jar-resolver where the 'classifier' argument is not considered, and I think it should be fixed.

Please answer the following, if applicable:

What's the issue repro rate?

  • 100%
@bhbac-nhnent bhbac-nhnent added the new to be triaged label Dec 7, 2020
@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@bhbac-nhnent bhbac-nhnent changed the title [BUG] [BUG] unity-jar-resolver fails from the format 'groupId:artifactId:version:classifier' Dec 7, 2020
@DellaBitta DellaBitta added type: feature request and removed new to be triaged labels Dec 8, 2020
@vimanyu vimanyu changed the title [BUG] unity-jar-resolver fails from the format 'groupId:artifactId:version:classifier' [Feature Request] unity-jar-resolver fails from the format 'groupId:artifactId:version:classifier' Dec 23, 2020
@vimanyu vimanyu self-assigned this Dec 23, 2020
@vimanyu
Copy link
Collaborator

vimanyu commented Jan 7, 2021

Hi @bhbac-nhnent,
Thanks for creating this issue. Just wanted to get some more information from you before looking into it.

  1. Do you have "Custom Main Gradle Template" on in Unity? If yes, as a workaround, is it possible for you to run Android Resolver, and then manually patch the gradle template file before exporting android project or building the aar?

  2. It will help for me to have a minimal unity project example to reproduce this.

  • What are the exact steps you are following to hit this error?
  • Is it an error on resolve or build?
  • Could you provide an example for a "*Dependencies" file that you are using?

@vimanyu vimanyu added the needs-info Need information for the developer label Jan 7, 2021
@bhbac-nhnent
Copy link
Author

bhbac-nhnent commented Jan 11, 2021

Hi @vimanyu ,

Weibo SDK can be declared in "*Dependencies" in two ways.

A. Defining a library that has dependencies on Weibo SDK (eg gamebase-adapter-auth-weibo).

<dependencies>
    <androidPackages>
        <androidPackage spec="com.toast.android.gamebase:gamebase-adapter-auth-weibo:2.19.0">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
    </androidPackages>
</dependencies>

B. Define Weibo SDK directly.

And PlayServicesResolver can be used in two ways.

  1. Patch the gradle file.
  2. Explode the AAR file.

Result

'A + 1': Success.

The patched mainTemplate.gradle file is as follows.

// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each {project ->
    project.repositories {
        maven {
            url "https://dl.bintray.com/thelasterstar/maven" // Assets/TestWeibo/Editor/MyDependencies.xml:7
        }
    }
}
// Android Resolver Repos End

dependencies {
    implementation fileTree(dir:'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation'com.toast.android.gamebase:gamebase-adapter-auth-weibo:2.19.0' // Assets/TestWeibo/Editor/MyDependencies.xml:7
// Android Resolver Dependencies End
**DEPS**}

'A + 2': Failure.

The error log is as follows.

Resolution Failed.

Resolution failed

Failed to fetch the following dependencies:
com.sina.weibo.sdk:core:10.10.0@aar


UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1053)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey9:<>m__0(Boolean, String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1911)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey9:<>m__4() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1978)
Google.RunOnMainThread:ExecuteNext() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:486)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:536)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:PollOnUpdateUntilComplete(Func`1, Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379)
GooglePlayServices.PlayServicesResolver:LabelAssets(IEnumerable`1, Action`1, Boolean, Action`2, Boolean, Boolean) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2317)
GooglePlayServices.GradleResolver:ProcessAar(String) (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1417)
GooglePlayServices.<ProcessAars>c__AnonStoreyB:<>m__0() (at Z:/tmp/tmp.9ZapGH0Pls/third_party/unity/unity_jar_resolver/source/AndroidResolver/src/GradleResolver.cs:1085)
Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread:<ExecuteAllUnnested>m__1() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.EH5aJF1Pno/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

'B + 1', 'B + 2': Failure.

The PlayServicesResolver source code is supposed to parse only the version of the "group:artifact:version" format, so it seems that there is currently no way to declare "group:artifact:version:classifier".

image

/// These are in the Maven style format "group:artifact:version".

image

/// This parses files in the following format:

I tried various methods as below, but none of them were successful.

<dependencies>
    <androidPackages>
        <androidPackage spec="com.sina.weibo.sdk:core:4.4.4:openDefaultRelease@aar">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
        <androidPackage spec="com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
        <androidPackage spec="com.sina.weibo.sdk:core:10.10.0">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
        <androidPackage spec="com.sina.weibo.sdk:core:openDefaultRelease:10.10.0">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
        <androidPackage spec="com.sina.weibo.sdk:core:10.10.0:openDefaultRelease">
            <repositories>
                <repository>https://dl.bintray.com/thelasterstar/maven</repository>
            </repositories>
        </androidPackage>
    </androidPackages>
</dependencies>

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Jan 11, 2021
@vimanyu
Copy link
Collaborator

vimanyu commented Jan 11, 2021

Thanks so much for the detailed response and trying out all these cases @bhbac-nhnent!
It helps to exactly know what cases are failing. Will let you know if I need any more information while adding this feature to EDM4U.

@patm1987 patm1987 added type: bug and removed needs-attention Need Googler's attention labels Feb 3, 2021
@bhbac-nhnent
Copy link
Author

@vimanyu @chkuang-g After installing version 1.2.164, I was able to confirm that the resolver works fine without any problems.
Thank you very much!
image

@bhbac-nhnent
Copy link
Author

bhbac-nhnent commented Feb 10, 2021

@vimanyu @chkuang-g After some testing, I found out that the functionality was not fully implemented yet.

In gradle, '@ + artifactType' means 'dependency is ignored'.
See an example below how it works in gradle.

WITH DEPENDENCIES
image
WITHOUT DEPENDENCIES
image

However, unity-jar-resolver fails if the classifier doesn't have artifactType attached.
This is not the correct behavior.

SUCCESS

<dependencies>
  <androidPackages>
    <androidPackage spec="com.sina.weibo.sdk:core:10.10.0:openDefaultRelease@aar">
      <repositories>
        <repository>https://dl.bintray.com/thelasterstar/maven</repository>
      </repositories>
    </androidPackage>
  </androidPackages>
</dependencies>

FAIL

<dependencies>
  <androidPackages>
    <androidPackage spec="com.sina.weibo.sdk:core:10.10.0:openDefaultRelease">
      <repositories>
        <repository>https://dl.bintray.com/thelasterstar/maven</repository>
      </repositories>
    </androidPackage>
  </androidPackages>
</dependencies>

image

@bhbac-nhnent
Copy link
Author

I posted the comment above as a new issue : #422

@googlesamples googlesamples locked and limited conversation to collaborators Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants