Comments (7)
Or, you may do the same in your project's build.gradle
script: just replace JavaVersion.VERSION_1_6
to JavaVersion.VERSION_1_7
, like that:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
from cordova-plugin-photos.
Android plugin is written on Java 7, but looks like you're trying to compile it with Java 6.
Just switch your project to Java 7 or 8:
- Make sure you have installed JDK 7 or 8 (recommended).
- In your project properties specify source and target compatibility 1.7 or 1.8 (if you use Android Studio, you may find it here: File -> Project Structure -> Modules -> android)
from cordova-plugin-photos.
Thanks!!
I just added this properties
ext.postBuildExtras = {
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
}
into build-extras.gradle and put it on platforms/android
from cordova-plugin-photos.
Before opening a new issue, I noticed this one, marked as closed. I tried both solutions, via Android studio
File -> Project Structure -> Modules -> android
and by adding an build-extras.gradle
extra file within the
platforms -> android -> build-extras.gradle
ext.postBuildExtras = {
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
}
But in both scenarios an error is throw: https://i.stack.imgur.com/qBykN.jpg Any thoughts @niconaso @domax ?
from cordova-plugin-photos.
Okay, it seems that this plugin depends on:
cordova-plugin-compat
and somehow didn't get installed after adding this plugin. Adding it fixed the problem.
cordiva (or ionic) plugin add cordova-plugin-compat --save
I'll see if I can PR a short note for the readme
, I think it will help some people out! :)
from cordova-plugin-photos.
@dnmd : I've just added explicit dependency to cordova-plugin-compat
from cordova-plugin-photos.
Or, you may do the same in your project's
build.gradle
script: just replaceJavaVersion.VERSION_1_6
toJavaVersion.VERSION_1_7
, like that:compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }
Thanksssss Solved for me!
from cordova-plugin-photos.
Related Issues (20)
- App is crashed on photos() call that returns huge amount of records
- Almost none of the images honour the dimension setting HOT 4
- Limit on Get photo assets HOT 13
- image() return base64 or dataURI HOT 4
- Phonegap Build error with Android HOT 1
- Wrong orientation in Android HOT 2
- Get access to URI ? HOT 2
- Get native paths of my images HOT 1
- Ask for contributing HOT 3
- collections() return Error: Invalid column DISTINCT bucket_id only on Android 10 HOT 4
- Impossible to get the image HOT 2
- Does not work with API 29
- Add getting image as file URL HOT 3
- Some assets don't return thumbnails on iOS
- Real size of thumbnails is lesser than requested on iOS
- Display ArrayBuffer in canvas looks scrambled HOT 3
- Some images are fetched in wrong orientation HOT 10
- Add timestamp in millis into Photos.photos() output
- Add optioning of fetching delay between photos() bundles
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 cordova-plugin-photos.