Comments (5)
Ok after a bit of debugging, I managed to get this running again. Here's what I did:
- In my top level build.gradle i changed
classpath 'com.android.tools.build:gradle:2.2.0'
toclasspath 'com.android.tools.build:gradle:2.1.0'
- Used buildToolsVersion '23.0.2' through out my gradle files.
- 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.
@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.
@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.
I'll close this issue since that has resolved the problem. Thanks very much.
from screenshot-tests-for-android.
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)
- verifyDebugAndroidTestScreenshotTest:RuntimeError HOT 1
- java.lang.OutOfMemoryError: Failed to allocate a 8781536 byte allocation with 4981712 free bytes and 4MB until OOM, max allowed footprint 536870912, growth limit 536870912 at java.util.Arrays.copyOf(Arrays.java:3260) HOT 2
- Library forces arbitrarily small image width HOT 1
- Found 0 Screenshots
- Recording a single test deletes all other screenshots
- Fail to execute runDebugAndroidTestScreenshotTest due to syntax error HOT 1
- Add support to Kotlin DSL
- RunScreenshotTestTask doesn't support configuration cache
- Performance?
- Value error: Operation on closed image when recording/verifying screenshots HOT 2
- Can't record very large view inside ScrollView HOT 4
- Screenshot record fails because of --> "Accessibility content change on non-UI thread"
- Is it possible to hideout dynamic content on the screen before capturing screenshot HOT 1
- Is it possible to vertical scroll and capture full screen
- Incorrect accessibility actions checks in `AccessibilityUtil`
- How to run plugin tests (plugin:check)
- How to install all the artifacts to local maven repository
- plugin id 'com.facebook.testing.screenshot:plugin' version '0.14.0' apply false Fail for android DSL files
- Add SurfaceView support
- test failure: Is your sdcard directory read-only?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenshot-tests-for-android.