`

Resolved versions for app (24.2.1) and test app (24.0.0) differ.

阅读更多

Original Gradle file:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    // Testing dependencies
    compile 'com.google.android.gms:play-services-gcm:9.4.0'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support.constraint:constraint-layout:+'
    compile 'com.android.support:design:24.2.1'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
    androidTestCompile 'com.android.support.test:runner:0.5'
    androidTestCompile 'com.android.support:support-annotations:24.0.0'
}
androidTestCompile 不匹配

FIXED when I added:

 

androidTestCompile 'com.android.support:support-annotations:24.2.1'
分享到:
评论

相关推荐

    解决The type org.springframework.dao.support.DaoSupport cannot be resolved.bao报错

    在开发Spring框架相关的Java应用时,可能会遇到"The type org.springframework.dao.support.DaoSupport cannot be resolved"的错误提示。这个错误通常意味着编译环境无法找到`DaoSupport`类,这是Spring DAO模块中的...

    The import com.loopj cannot be resolved 的解决方案

    在Android Studio或Eclipse这样的IDE中,第三方库通常会被包含在`libs`或`app/libs`目录下。如果你没有在这个位置看到`com.loopj`相关的jar文件,那么它可能就没有被正确地添加到项目中。 2. **导入jar包**:如果你...

    BURNINTEST--硬件检测工具

    - Changed the Memory test to wait for the Video Playback test and 3D test to allow memory allocation for these tests. - Minor changes to the No operation error watchdog timer for the CD and Hard ...

    jar.zip解决The import javax.crypto cannot be resolved

    然而,有时在开发过程中,我们可能会遇到"The import javax.crypto cannot be resolved"这样的错误提示,这意味着编译器无法找到这个包或者其依赖的库。这通常是由于JDK的默认配置中未包含某些安全相关的扩展,如...

    Software Testing and Continuous Quality Improvement

    Software Testing and Continuous Quality Improvement <br>SECTION I SOFTWARE QUALITY IN PERSPECTIVE . . . . . . . . . . . . . . . 1 1 Quality Assurance Framework. . . . . . . . . . . . . . . . . ....

    导入工程的“The import android cannot be resolved”错误解决方法

    - 确认“Use target frameworks for Java source and class file compatibility”复选框已被勾选。 3. **检查项目构建路径**: - 在项目属性的“Java Build Path”中,确保“Libraries”标签页下包含了所需的...

    uni-app 请求拦截器

    【uni-app请求拦截器】是基于uni-app框架实现的一种机制,它允许开发者在发送网络请求前和接收到响应后执行自定义的操作。这种机制对于统一处理请求头、数据格式、错误处理以及添加全局的请求前后的逻辑非常有用,极...

    apache-ant-1.8.2.jar

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包

    greenplum-db-6.2.1-rhel7-x86_64.rpm

    This issue has been resolved. gpstart output was also enhanced to provide additional warnings and summary information about the number of skipped segments. For example: [WARNING]:-********

    a project model for the FreeBSD Project.7z

    I would like to thank the following people for taking the time to explain things that were unclear to me and for proofreading the document. Andrey A. Chernov <ache@freebsd.org> Bruce A. Mah ...

    测试类报错Test cannot be resolved to a type-附件资源

    测试类报错Test cannot be resolved to a type-附件资源

    httpcomponents-client-4.5.5-bin和src_20180518.zip

    > ★The type org.apache.http.NameValuePair cannot be resolved. It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a...

    ChromeDriver 75.0.3770.140 for linux64

    Resolved issue 2975: Webdriver Actions for keys (CONTROL, SHIFT etc..) not working in ChromeDriver 75.0.3770.8 [Pri-2] Resolved issue 2947: No W3C compliant endpoints for retrieving logs [Pri-2] ...

    TeeChart Pro Activex Control v5

    Internal rounding error resolved. 10.Help button on Chart Editor not functioning. Now resolved. New features: 1. DeleteRange method added to permit block delete of several points from a Series....

    Eclipse新建Android项目报错解决方案详细汇总

    如图,如果报The import android.support cannot be resolved或者android.support.v7.app.ActionBarActivity类似的错误。 解决方案一 :缺少相关依赖包,这里提供亲测有效的库文件,需要导入android-support-v7-...

    API resolved without sending a response for(解决方案).md

    API resolved without sending a response for(解决方案).md

    org.apache.poi jar包

    org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils;..."The import org.apache.poi cannot be resolved"的问题

    estableRuntimeException cannot be resolved 解决

    在Java编程环境中,我们经常会遇到编译错误提示“XXX cannot be resolved”,这通常意味着系统无法找到指定的类或方法。在这种情况下,"org.apache.commons.lang.exception.NestableRuntimeException cannot be ...

    systemd-resolved-219-78.el7_9.5.x86_64.rpm

    官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装

Global site tag (gtag.js) - Google Analytics