A
A
Alexander Grigoriev2020-03-30 12:36:51
Java
Alexander Grigoriev, 2020-03-30 12:36:51

Why can't Gradle build the project?

Gives an error message

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'app_org_mirize'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve javax.inject:javax.inject:1.
     Required by:
         project : > com.android.tools.build:gradle:3.6.1 > com.android.tools.build:builder:3.6.1
         project : > com.android.tools.build:gradle:3.6.1 > com.android.tools.build:builder:3.6.1 > com.android.tools:sdk-common:26.6.1
      > No cached version of javax.inject:javax.inject:1 available for offline mode.
      > No cached version of javax.inject:javax.inject:1 available for offline mode.

Here is part of the error. In fact, the error is more than 10,000 thousand characters, the site does not allow to publish more.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Roo, 2020-03-30
@AKR4log

Try adding javax.inject to your project
https://mvnrepository.com/artifact/javax.inject/ja...

M
mayton2019, 2020-03-30
@mayton2019

This javax.inject:javax.inject:1 artifact was available locally and when the poor author came to work from home, it became unavailable.
Offline most likely will not help. the author did not have time to download it to the gradle cache.
What to do - xs. We need to look for this artifact in other repositories that are available from home.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question