Comments (9)
I'm still unable to get this working in my library due to the error above. I'm using version 0.4.1
and here is the gradle logs with --info --debug
https://gist.github.com/gpeal/8ce20024af55a710c8be50e5ea489e6e
from screenshot-tests-for-android.
The project is a gradle project with 2 modules, an Android library and an Android application. The application depends on the library and only the application applies the plugin.
There are no custom flavors.
EDIT:
I did some digging by cloning the repo and printing out the output paths and these are the 2 that are found in ScreenshotsPlugin#getTestApkOutput:
- /Users/.../Lotte/LotteSample/build/intermediates/incremental/packageDebugAndroidTest
- /Users/.../Lotte/LotteSample/build/outputs/apk/LotteSample-debug-androidTest.apk
from screenshot-tests-for-android.
@gpeal did you solve this issue?
from screenshot-tests-for-android.
I ran into this issue when updating to com.android.tools.build:gradle:2.2.0
.
Switching back to com.android.tools.build:gradle:2.1.3
works around the issue, so it appears to be an incompatibility with version 2.2.0 specifically.
from screenshot-tests-for-android.
I was able to repro on 2.2.0, thanks for the info @brianguertin!
Trying to figure this out, will keep you posted. (I'm not exactly a gradle expert, so any hints are welcome)
from screenshot-tests-for-android.
Okay fix has landed: d84e7ab
If somebody can :plugin:install locally and verify that this works for them, I can publish a new minor release. Thanks!
from screenshot-tests-for-android.
I can't test the local install today (how does :plugin:install work by the way?).
However, a couple of weeks ago, I made a local fix very similar to yours and it fixed it for me so if you want to bump the version and push to maven, I can try that.
from screenshot-tests-for-android.
@gpeal, :plugin:install would install it to your local maven repository, so then you can use it to build your actual app instead of downloading the jar from mavencentral or the likes.
In any case, I'll bump up the version today and close out this task then.
from screenshot-tests-for-android.
Version bumped to 0.4.2, thanks for the report!
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.