Coder Social home page Coder Social logo

Comments (8)

mrwellmann avatar mrwellmann commented on May 28, 2024 1

@DmitriyKirakosyan thanks a lot!
With your fix I was able to build a working .apk but I still got a failed build which was very stage. After some digging and trial and error the fix seems to add //implementation('com.microsoft.appcenter:appcenter-analytics:[1.10.0]') My guess is something in the ASA SDK is searching for it but does not care that its commented-out.

I will publish this solution also into the ASA GitHub repo.

from appcenter-sdk-unity.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on May 28, 2024

Hi @mrwellmann

Thank you for reaching out to us and thank you for you sample project!

The problem is, as you mentioned, that ASA SDK uses App Center Analytics and it conflicts with the App Center SDK that you integrate in your App. I believe this is not an AppCenter SDK issue.
Regarding this solution that you pointed out. Have you tried to modify the launcherTemplate.gradle as well? You can find some info about the file here.
Also, have you tried to use Unity jar resolver?

I couldn't launch your app due to some unity versions incompatibility.
I will try to fix the versioning issue and run your sample, and let you know if I find any solution/workaround.

from appcenter-sdk-unity.

mrwellmann avatar mrwellmann commented on May 28, 2024

Hi @DmitriyKirakosyan,

thanks for the quick feedback. I was writing here as the last time this issue popped up it was here where the fix was found.


Regarding this solution that you pointed out. Have you tried to modify the launcherTemplate.gradle as well?

No I did not. I just quickly checked. The issue stay the same.
Could not find method natives() for arguments [com.microsoft.azure.spatialanchors:spatialanchors_ndk:[2.9.0]] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

com.microsoft.azure.spatialanchors:spatialanchors_ndk is actually not any more part of the modifications the ASA SDK does.

The modifications from ASA SDK on the mainTemplate.gradle look like this now

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation('com.squareup.okhttp3:okhttp:[3.11.0]')
    implementation('com.microsoft.appcenter:appcenter-analytics:[1.10.0]')
**DEPS**}

Also, have you tried to use Unity jar resolver?

We use it in our the Unity jar resolver in our application, but I'm not an expert on the topic.
You mean if I tried to resolve Android Dependencies, right?
image
I also added it to the sample project.


The solution should be to tell ASA SDK to use appcenter-release-runtime.jar instead of appcenter-1.10.0-runtime.jar and not include the appcenter-1.10.0-runtime.jar right? I just don't know how to do this.

from appcenter-sdk-unity.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on May 28, 2024

hi @mrwellmann

Thank you for the details.
Try to remove the line implementation('com.microsoft.appcenter:appcenter-analytics:[1.10.0]') from your mainTemplate.gradle, so it would look like this:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation('com.squareup.okhttp3:okhttp:[3.11.0]')
**DEPS**}

I'm not sure if ASA will function properly without this dep. But if this solution worked, then it should.

Additionally you can try to add these lines to the mainTemplate.gradle:

implementation(name: 'spatialanchors_ndk', ext:'aar') {
   exclude group: 'com.microsoft.appcenter'
}

I reproduced your issue and these modifications made the build finish successfully for me. However, it crashes with some graphics issues. Perhaps, because I ran it on emulator.

Please let me know if that worked for you.

from appcenter-sdk-unity.

AnastasiaKubova avatar AnastasiaKubova commented on May 28, 2024

We haven’t heard from you in a while so I’m closing this issue but feel free to reopen this issue if you have additional questions.

from appcenter-sdk-unity.

Silloty1 avatar Silloty1 commented on May 28, 2024

Hello
Sorry @mrwellmann is currently in holidays so I am handling the ticket for now. I tried to apply the fixes mentionned in that issue and also remove the line implementation('com.microsoft.appcenter:appcenter-analytics:[1.10.0]'), but it still doesn't work. The error is the following : Could not find method natives() for arguments [com.microsoft.azure.spatialanchors:spatialanchors_ndk:[2.9.0]] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

from appcenter-sdk-unity.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on May 28, 2024

Hi @Silloty1 and @mrwellmann

I prepared a PR to your demo app with the fix : firedrill-gmbh/ASA-AppCenter-TestCase#1.
Please check if it works for you.

from appcenter-sdk-unity.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on May 28, 2024

I'm glad the issue is resolved for you!

from appcenter-sdk-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.