Skip to content
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

Failed to resolve: com.microsoft.device:dualscreen-layout:1.0.0-alpha01 #5

Closed
divaypandey opened this issue Jul 16, 2020 · 9 comments
Closed

Comments

@divaypandey
Copy link

Build issue when updating gradle version of Fluent UI implementation to 0.0.4
implementation 'com.microsoft.fluentui:FluentUIAndroid:0.0.4'

Grade issue disappears at 0.0.3.
minSdkVersion 22
targetSdkVersion 29
compileSdkVersion 29
buildToolsVersion "29.0.2"

@tamasane97
Copy link
Contributor

Sync Project with Gradle files, solves the issue.

@divaypandey
Copy link
Author

I did, also cleaned and tried to rebuild, neither helped in 0.0.4, 0.0.3 still works fine

@aaronspooky
Copy link

I don't know why, but if you add this to the top-level build.gradle file, it works:

allprojects { repositories { maven { url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1" } } }

Microsoft documentation: https://docs.microsoft.com/en-us/dual-screen/android/api-reference/dualscreen-layout?tabs=java

@tamasane97
Copy link
Contributor

@aaronspooky It is already present in the top-level build.gradle file, https://github.com/microsoft/fluentui-android/blob/master/build.gradle
@azuredivay I am unable to produce this issue. The gradle build completes successfully without any issue. Please try recloning the project.

@divaypandey
Copy link
Author

divaypandey commented Jul 19, 2020

@tamasane The issue wasn't from cloning this project, it was from adding Fluent UI as a dependency in a new android project, apparently version 0.0.4 depends on what @aaronspooky pointed out, so it fails to build as the package itself doesn't contain it

@postfixNotation
Copy link

postfixNotation commented Jul 24, 2020

Build issue when updating gradle version of Fluent UI implementation to 0.0.4
implementation 'com.microsoft.fluentui:FluentUIAndroid:0.0.4'

Grade issue disappears at 0.0.3.
minSdkVersion 22
targetSdkVersion 29
compileSdkVersion 29
buildToolsVersion "29.0.2"

I'm experiencing the exact same issue! minSdkVersion is 21 though, but that's not the point.

EDIT:
maven { url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1" }

needs to be added to the module build gradle file in allprojects -> repositories

@divaypandey
Copy link
Author

@postfixNotation's solution worked!

@truedat101
Copy link

Why is this closed if it is a work around and isn't integrated into the instructions?

@truedat101
Copy link

So the instructions include the obscure "surface-duo" https://github.com/microsoft/fluentui-android#a-develop-for-surface-duo

in the main readme, however, it is presented as if this is an option, in case you are developing for surface-duo. It should just be required configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants