question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gradle always downloads aar file (no android!)

See original GitHub issue

Hey there,

I want to include the Microsoft Speech SDK into my gradle project. It should run on linux.

This issue is for a: (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • Create a gradle project
  • Set repo and dep like this (converted from maven to gradle)
repositories {
    maven {
        url "https://csspeechstorage.blob.core.windows.net/maven"
    }
}
dependencies {
    implementation "com.microsoft.cognitiveservices.speech:client-sdk:1.0.1"
}
  • Try to use sample code
  • –> Package com.microsoft.cognitiveservices.speech is not available

Any log messages given by the failure

Could not find com.microsoft.cognitiveservices.speech

Expected/desired behavior

Download .jar file instead of the .aar file

OS and Version?

Ubuntu 18.04

Versions

1.0.1

Mention any other details that might be useful

It seems like gradle always downloads the aar file.

Thank you very much! 😃 Best regards

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
tarantelklientcommented, Oct 15, 2018

hey @fmegen

thank you really much for your effort! After long period of failures I found a workaround for gradle. It is possible to declare an extension for the dependency:

dependencies {
    implementation group: 'com.microsoft.cognitiveservices.speech', name: 'client-sdk', version: "1.0.1", ext: "jar"
}

Best regards

2reactions
harrydhillon43commented, Feb 6, 2021

This is still an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle: download Dependencies of included aar-library
In this case, gradle downloads the dependencies using the pom file which will contains the dependencies list.
Read more >
gradle folder in project - Help/Discuss
I have a complicated gradle build script that downloads artifacts from a repository and package them into an AAR file but the first...
Read more >
Known issues with Android Studio and Android Gradle Plugin
This page tracks known issues with Android Studio Giraffe and Android Gradle plugin 8.1.0. If you experience an issue not already included here, ......
Read more >
gradle can not download sources.jar in Android Studio ...
When I update my gradle version from 3.3 to 3.5. Then the sources.jar have not been download,So I can't see java source for...
Read more >
Android Plugin with AAR dependency, Android studio ...
Hi all,. I've got an SDK which is exported as an AAR, the jar file is packaged with resources, the manifest etc etc....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found