Coder Social home page Coder Social logo

Error " output files to contain exactly one file, however, it contains 2 files" when running verifyMode screenshotTests about screenshot-tests-for-android HOT 5 CLOSED

facebook avatar facebook commented on May 5, 2024
Error " output files to contain exactly one file, however, it contains 2 files" when running verifyMode screenshotTests

from screenshot-tests-for-android.

Comments (5)

SundeepK avatar SundeepK commented on May 5, 2024

Ok after a bit of debugging, I managed to get this running again. Here's what I did:

  1. In my top level build.gradle i changed classpath 'com.android.tools.build:gradle:2.2.0' to classpath 'com.android.tools.build:gradle:2.1.0'
  2. Used buildToolsVersion '23.0.2' through out my gradle files.
  3. Set targetSdkVersion 22 - this is ok for now since I'm working on a libaray and the sample app is using this as the target version. I know there seems to be problem with permissions targetting higher versions.

I'm not sure if my initail config was wrong (i'm a bit sketcy when it comes to gradle) or perhaps this library is incompatible but it doesn't say anything in the requirements for this. Any comments would be welcome in understanding the problem.

from screenshot-tests-for-android.

tdrhq avatar tdrhq commented on May 5, 2024

@SundeepK upgrade your screenshot-tests plugin to 0.4.3, this is a known incompatibility with the 2.2.0 version of the android gradle plugin. Let me know if this works.

from screenshot-tests-for-android.

SundeepK avatar SundeepK commented on May 5, 2024

@tdrhq I couldn't find version 0.4.3. However, version 0.4.2 seems to work fine with version 2.1.0 of the android gradle plugin.

from screenshot-tests-for-android.

SundeepK avatar SundeepK commented on May 5, 2024

I'll close this issue since that has resolved the problem. Thanks very much.

from screenshot-tests-for-android.

sanket-vekariya avatar sanket-vekariya commented on May 5, 2024

Ok after a bit of debugging, I managed to get this running again. Here's what I did:

1. In my top level build.gradle i changed `classpath 'com.android.tools.build:gradle:2.2.0'` to `classpath 'com.android.tools.build:gradle:2.1.0'`

2. Used buildToolsVersion '23.0.2' through out my gradle files.

3. Set targetSdkVersion 22 - this is ok for now since I'm working on a libaray and the sample app is using this as the target version. I know there seems to be problem with permissions targetting higher versions.

I'm not sure if my initail config was wrong (i'm a bit sketcy when it comes to gradle) or perhaps this library is incompatible but it doesn't say anything in the requirements for this. Any comments would be welcome in understanding the problem.

facing same issues with classpath 'com.android.tools.build:gradle:3.0.0' and higher..with kotlin.. any current solutions available now ?

from screenshot-tests-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.