Comments (3)
I found out what the issue was today. Using anything other than JDK 1.8 (including later versions from 10 and upwards, I believe) will cause Robolectric to break. Hence the failing unit tests. I couldn't figure out why my build wasn't working because I set JAVA_HOME=/path-to-my-1.8-jdk. Turns out I wasn't setting the correct folder. On my Mac, "/bin/java" is automatically appended to the JAVA_HOME variable, apparently, so you have to get the pathname correct taking into account the appended string.
(As an aside, I would suggest instructions in the tutorial for how to permanently set the JAVA_HOME variable or link to some documentation explaining this. Basically, for Mac, you just sudo nano ~./bash_profile
and add export JAVA_HOME='path-to-jdk-1.8'
into the file that opens. Save and exit the file and the JAVA_HOME variable should be set to the value you specified every time you open a terminal).
I will leave this open in case this issue of JDK 10, 11, 12, and 13 incompatibility still needs to be tracked.
from kampkit.
Thanks for the issue, I'm glad you got it working. We do want to find the best way to deal with JDK discrepancies. There is a similar issue here: #44
from kampkit.
We've upgraded to use Robolectric 4.3. That seemed to fix the case where I'd seen this issue. Interested to know if it still happens for anyone else.
from kampkit.
Related Issues (20)
- JS/React model HOT 1
- KaMPKit - 1.8 Beta testing HOT 4
- Adding C++/C header example HOT 3
- Test SQLDelight 2 alpha HOT 1
- single and canceled scope HOT 1
- KaMPKit - 1.8 Release Testing HOT 1
- Demonstrate new android sourceSet layout
- `./gradlew build` fails on `BreedViewModelTest` HOT 3
- Try debugging with KaMP Kit and Kotlin 1.8
- iOS tests are failing HOT 1
- AndroidSqliteDriver is never used HOT 1
- Enabling configuration cache in gradle properties breaks xcode build HOT 3
- help help help! #16 HOT 4
- Update dependency versions
- ios app not behaving as expected when BreedListScreen isn't the rootView HOT 1
- Can't build iOS - minimum deployment target is too low / APIs used require a too high minimum deployment target HOT 1
- Can't build iOS from XCode - Framework not found Pods_KaMPKitiOS HOT 1
- Add a sample for Compose Multiplatform
- Feature Request: Add Build Config and Build Flavor like capability in KMM HOT 1
- Release build fails HOT 1
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 kampkit.