Comments (10)
@MugOfPaul I was able to reproduce the issue. I have found the following interesting thing Azure/azure-spatial-anchors-samples#31 . 'Azure Spatial Anchors' has a dependency on 'AppCenter.Analytics'. That is why the error appears. I have found that 'mainTemplate.gradle' file was added by 'Azure Spatial Anchors' to the 'Assets/Plugins/Android' folder. In this file, I have found the following code
I have added a new excluded group ('com.microsoft.appcenter')
After that, I was able to build my test project. Maybe it solves your problem.
from appcenter-sdk-unity.
@olmisa That did the trick! I am now able to build Android with the Distribute SDK installed.
I would have never figured that out. Thank you so much for your effort. I'm excited to be able to use App Center to share iOS and Android Unity AR apps.
from appcenter-sdk-unity.
Hey, @MugOfPaul, thanks for bringing this to our sight. What's your Unity version?
from appcenter-sdk-unity.
Also, is there a chance to have a look at gargle file you get, and know the gradle version you are using?
Can I also have a look at project structure - to make sure there are no duplicates
And just to make sure - have you tried to remove AC, clean project, and re-implement SDK? Seems like one of aars got stuck somewhere.
from appcenter-sdk-unity.
Unity 2019.2.11f1
I should mention I had this problem with just Distribute installed as well. When I upgraded to 2.5.1 to try and resolve the issue, I went ahead and turned on Analytics and Crashes. I couldn't find a distinct Gradle log but I'm attaching the full Editor log which shows the Gradle output.
from appcenter-sdk-unity.
Hi, it seems to be an error with code duplication, could you try solutions from this thread?
from appcenter-sdk-unity.
Hi @russelarms as far as I could tell, the solution there was to delete the contents of the Library directory which did not help.
Given the error is D8: Program type already present: com.microsoft.appcenter.analytics.Analytics$10
Is there anything wrong with this jar set up? I suppose I could try a full removal of App Center and try again.
from appcenter-sdk-unity.
An update: I removed the SDK via the Editor Extension and the Android project builds succesfully. Re-installing 2.5.1 (all packages) and the error comes back. I removed all of the packages except Distribute and the error remained.
As an aside, the Editor extension is very well done but you are generating quite a few "Coroutiner" objects in the Scene. I would recommend hiding them from the hierarchy.
from appcenter-sdk-unity.
@MugOfPaul could you try to build this sample:
https://github.com/olmisa/AndroidBuildSample
Do you have the same problem?
As an aside, the Editor extension is very well done but you are generating quite a few "Coroutiner" objects in the Scene. I would recommend hiding them from the hierarchy.
Thanks for pointing this out, I'll discuss it with the team.
from appcenter-sdk-unity.
@russelarms That project built with no issues – using the same instance and version of Unity that is causing issues in my own project.
from appcenter-sdk-unity.
Related Issues (20)
- Conflict between Azure Spatial Anchors SDK and App Center SDK. HOT 8
- ARR Module is not unlinked correctly. HOT 2
- iOS app gets into a state where it continuously crashes on app launch since iOS 15.0.x HOT 5
- Android: AppCenterLoader: java.lang.ClassCastException when used with Intune Company Portal HOT 3
- error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'Microsoft.AppCenter.Unity.Analytics' (are you missing an assembly reference?) HOT 9
- Android SharedPreferences - NullPointerException HOT 9
- (UWP) A project generated with Unity 2021.2.x cannot build the APPX packages when including AppCenterSDK HOT 3
- Guidance needed for EUDB Schrems Compliance HOT 2
- Analytics installation package required HOT 3
- App Secrets for Dev & Prod apps? HOT 3
- Exception when domain reload disabled HOT 3
- Unity / Can't build UWP project with AppCenter Analytics in Visual Studio HOT 2
- No analytics data on UWP in App Center HOT 11
- App Center Behavior should have only one instance! HOT 7
- Please make AppCenter a Github package HOT 2
- Has AppCenter been sunset? HOT 1
- [iOS] Distribute service hasn't been started HOT 4
- This repo is missing important files HOT 1
- FATAL: Unity 2022.2.11 broke native Android crash reporting HOT 18
- App downloaded from In-app-update won't detect another update HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-unity.