Comments (4)
your default version is java 6 or 8? then yes try to force java 7 for both builds. (plugin and your project)
See also #7
from android-gradle-template.
Hello... I have successfully built and run your template with Java 1.7, however, I want to use it with Java 1.8. The reason is I want to write my main application in Java 1.8 ,but I would like to use your template as a starting point (because it has all the jacoco stuff set up for robolectric and espresso)
Is there any way to get it to work for 1.8? If not, is there a way I can compile my app with 1.8 but use 1.7 for the tasks that your template depends on?
Currently I get this error (described in this thread) if I try it with 1.8
from android-gradle-template.
Maybe this will be just one error in a error chain .. i never read that java 8 is supported for android. There are some projects to support the lambda.
Let us do following experiment. Build a simple app (new project with android studio) based on Java 8 and use all java 8 features you like to have. Let it run on your test device.
If it work, great then we should try to make this template java 8 compatible.
from android-gradle-template.
I'm thinking about to switch the base plugin which support robolectric by https://github.com/JCAndKSolutions/android-unit-test
Please try the given example for this plugin with Java 8. There can also jacoco be enabled I have already an working example.
from android-gradle-template.
Related Issues (20)
- Project Structure Question HOT 1
- A problem occurred evaluating project ':ComponentTestsRobolectric' HOT 6
- When using this template, I've faced some problems HOT 3
- jacoco with espresso, task jacocoTestReport skipped HOT 6
- Maybe switch to JCAndKSolutions/android-unit-test
- 'android' or 'android-library' plugin is required HOT 8
- Illegal use of nonvirtual function call HOT 2
- Collect code coverage during manual testing? HOT 2
- Update to latest version of Espresso and Mockito? HOT 3
- Voting: Which is your favourite way to support robolectric? HOT 5
- Can not compile success in the environment Android Studio1.0+ gradle2.2.1+build gradle1.0 HOT 3
- Unexpected top-level exception when running app HOT 2
- Could not find com.novoda:gradle-android-test-plugin:0.10.3. HOT 3
- run-tests.sh needs a simple fix HOT 1
- Android Studio 1.4 Java modules cannot depend on Android modules HOT 2
- FileNotFound Exception HOT 8
- Running / debugging Unit or Component tests in Android Studio HOT 3
- Unable to import project HOT 5
- oops
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 android-gradle-template.