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

Could not find com.androidx.test.espresso:espresso-core:2.2.2 #20828

Closed
ShowTsai opened this issue Jul 16, 2018 · 9 comments
Closed

Could not find com.androidx.test.espresso:espresso-core:2.2.2 #20828

ShowTsai opened this issue Jul 16, 2018 · 9 comments
Assignees
Labels
comp:lite TF Lite related issues

Comments

@ShowTsai
Copy link

When I tried to build the project, I got this:
Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugAndroidTestApkCopy'.
Could not find com.androidx.test.espresso:espresso-core:2.2.2.
Required by:
project :app

@aselle
Copy link
Contributor

aselle commented Jul 26, 2018

I think this is now fixed in master
https://github.com/tensorflow/tensorflow/commits/master/tensorflow/contrib/lite/examples/android/app/build.gradle
Please try again and close if so.

@angerson angerson added the stat:awaiting response Status - Awaiting response from author label Aug 1, 2018
@angerson angerson assigned aselle and unassigned angerson Aug 1, 2018
@odaira
Copy link

odaira commented Aug 2, 2018

hmm, now I get this error when building tensorflow/contrib/lite/java/demo with Android Studio:

Failed to resolve: androidx.test.espresso:espresso-core:3.1.0-alpha3

@aclemens
Copy link

I get the same error.... :-(

@odaira
Copy link

odaira commented Aug 15, 2018

This solved the problem for me:

diff --git a/tensorflow/contrib/lite/java/demo/app/build.gradle b/tensorflow/contrib/lite/java/demo/app/build.gradle
index 92f04c651c..2a91f59df8 100644
--- a/tensorflow/contrib/lite/java/demo/app/build.gradle
+++ b/tensorflow/contrib/lite/java/demo/app/build.gradle
@@ -11,11 +11,6 @@ android {
         versionCode 1
         versionName "1.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-
-        // Remove this block.
-        jackOptions {
-            enabled true
-        }
     }
     lintOptions {
         abortOnError false
@@ -37,6 +32,7 @@ android {
 }
 
 repositories {
+    google()
     maven {
         url 'https://google.bintray.com/tensorflow'
     }
diff --git a/tensorflow/contrib/lite/java/demo/build.gradle b/tensorflow/contrib/lite/java/demo/build.gradle
index b78a0b86c9..f6533b4535 100644
--- a/tensorflow/contrib/lite/java/demo/build.gradle
+++ b/tensorflow/contrib/lite/java/demo/build.gradle
@@ -3,9 +3,10 @@
 buildscript {
     repositories {
         jcenter()
+        google()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.3.1'
+        classpath 'com.android.tools.build:gradle:3.1.3'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
diff --git a/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties b/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties
index fa7a38a0e4..72c939c9ff 100644
--- a/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties
+++ b/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Thu Sep 28 09:01:41 PDT 2017
+#Thu Aug 02 11:46:34 CDT 2018
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

@ShowTsai
Copy link
Author

I use "com.android.support.test.espresso:espresso-core:2.2.2".
It works.

@aclemens
Copy link

Ok I could build it but unfortunately it crashes directly on the mobile... (Nokia 6.1 with Android 8.1)...

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Aug 16, 2018
@aselle aselle assigned shashishekhar and unassigned aselle Aug 16, 2018
@aselle
Copy link
Contributor

aselle commented Aug 16, 2018

@shashishekhar , could you please take a look?

@shashishekhar
Copy link
Contributor

@odaira : looks like you already have a fix :), Can you send a PR :).

@tensorflowbutler
Copy link
Member

Nagging Assignee @shashishekhar: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues
Projects
None yet
Development

No branches or pull requests

7 participants