pwlin / cordova-plugin-pix Goto Github PK
View Code? Open in Web Editor NEWA Cordova Plugin for Pix Image Picker
License: MIT License
A Cordova Plugin for Pix Image Picker
License: MIT License
Hello,
Thank you for the project. Looks awesome!
I installed your plugin with cordova: cordova plugin add cordova-plugin-pix
But it doesn't build with the following error:
BUILD FAILED in 1m 8s cmd: Command failed with exit code 1 Error output: Note: D:\V2\Android\platforms\android\cordova-plugin-pix\playDogs-pix\src\main\java\com\fxn\utility\Utility.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
I am using Cordova 8.1.2 with android-minSdkVersion, value = 28 and jdk1.8.0_201.
Can you help?
Thank you in advance!
Normal work
When the event fires, the view doesn't react, and the following error is output in the Android studio console:
Android 6.0.1
W/GooglePlayServicesUtil: Google Play services out of date. Requires 11720000 but found 9256430
W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
E/FA: Failed to send current screen to service
Discarding data. Failed to send event to service
D/CordovaActivity: Resumed the activity.
W/System.err: java.lang.ClassNotFoundException: io.github.pwlin.cordova.plugins.pix.Pix
W/GooglePlayServicesUtil: Google Play services out of date. Requires 11720000 but found 9256430
W/System.err: at java.lang.Class.classForName(Native Method)
W/System.err: at java.lang.Class.forName(Class.java:324)
at java.lang.Class.forName(Class.java:285)
at org.apache.cordova.PluginManager.instantiatePlugin(PluginManager.java:489)
at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169)
at org.apache.cordova.PluginManager.exec(PluginManager.java:122)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:141)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.github.pwlin.cordova.plugins.pix.Pix" on path: DexPathList[[zip file "/data/app/com.risingsun.lunvon-2/base.apk"],nativeLibraryDirectories=[/data/app/com.risingsun.lunvon-2/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 12 more
W/System.err: Suppressed: java.lang.ClassNotFoundException: io.github.pwlin.cordova.plugins.pix.Pix
W/System.err: at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I/System.out: Error adding plugin io.github.pwlin.cordova.plugins.pix.Pix.
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String, org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView, org.apache.cordova.CordovaPreferences)' on a null object reference
at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
W/System.err: at org.apache.cordova.PluginManager.exec(PluginManager.java:122)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:141)
at android.os.HandlerThread.run(HandlerThread.java:61)
W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
E/FA: Failed to send current screen to service
Android 8.1.0
E/: nFreeSize: 35973226496
W/MessengerIpcClient: Timing out request: 1
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/System.err: java.lang.ClassNotFoundException: io.github.pwlin.cordova.plugins.pix.Pix
W/System.err: at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at org.apache.cordova.PluginManager.instantiatePlugin(PluginManager.java:489)
at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169)
W/System.err: at org.apache.cordova.PluginManager.exec(PluginManager.java:122)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:329)
at android.os.Looper.loop(Looper.java:150)
at android.os.HandlerThread.run(HandlerThread.java:65)
W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "io.github.pwlin.cordova.plugins.pix.Pix" on path: DexPathList[[zip file "/data/app/com.risingsun.lunvon-UtmJvlazjNaYnA-RYVDGCQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.risingsun.lunvon-UtmJvlazjNaYnA-RYVDGCQ==/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 12 more
I/System.out: Error adding plugin io.github.pwlin.cordova.plugins.pix.Pix.
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String, org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView, org.apache.cordova.CordovaPreferences)' on a null object reference
W/System.err: at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
at org.apache.cordova.PluginManager.exec(PluginManager.java:122)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
W/System.err: at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:329)
at android.os.Looper.loop(Looper.java:150)
W/System.err: at android.os.HandlerThread.run(HandlerThread.java:65)
D/CordovaActivity: Resumed the activity.
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{1570d4c com.risingsun.lunvon/com.risingsun.lunvon.MainActivity,ident = 2}, this = DecorView@6c30d9[MainActivity]
Running along with the ionic push plugin
Android 6.0.1 and Android 8.1.0
XiaoMi Android 6.0.1 and vivo Android 8.1.0
cordova info
Here is the output:
Collecting Data...
Node version: v10.15.3
Cordova version: 7.1.0
Config.xml file:
<?xml version='1.0' encoding='utf-8'?>
<widget android-packageName="com.risingsun.lunvon" ios-CFBundleIdentifier="com.risingsun.lunvon" version="1.0.0.1001" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Lunvon</name>
<description>SmartHome control center</description>
<author email="[email protected]" href="[email protected]">lunvon</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="ShowSplashScreen" value="true" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="FadeSplashScreen" value="false" />
<platform name="android">
<allow-intent href="market:*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" src="resources/ios/icon/[email protected]" width="114" />
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
<icon height="80" src="resources/ios/icon/[email protected]" width="80" />
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
<icon height="100" src="resources/ios/icon/[email protected]" width="100" />
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
<icon height="180" src="resources/ios/icon/[email protected]" width="180" />
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
<icon height="144" src="resources/ios/icon/[email protected]" width="144" />
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
<icon height="152" src="resources/ios/icon/[email protected]" width="152" />
<icon height="167" src="resources/ios/icon/[email protected]" width="167" />
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<preference name="SplashScreenDelay" value="3000" />
<engine name="android" spec="7.1.4" />
<engine name="ios" spec="4.5.5" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^2.4.0">
<variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
</plugin>
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.1.3" />
<plugin name="cordova-plugin-nativestorage" spec="^2.3.2" />
<plugin name="wifiwizard2" spec="^3.1.0" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
<plugin name="cordova-plugin-nativeclicksound" spec="0.0.4" />
<plugin name="cordova-plugin-advanced-http" spec="^2.0.6" />
<plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
<plugin name="cordova-plugin-network-information" spec="^2.0.1" />
<plugin name="cordova-plugin-esptouch" spec="^1.0.4" />
<plugin name="cordova-plugin-screen-orientation" spec="^3.0.1" />
<plugin name="cordova-plugin-app-version" spec="^0.1.9" />
<plugin name="phonegap-plugin-push" spec="^2.2.3" />
<plugin name="cordova-plugin-nativeaudio" spec="^3.0.9" />
<plugin name="cordova-plugin-badge" spec="^0.8.8" />
<plugin name="cordova-plugin-networkinterface" spec="^2.0.0" />
<plugin name="cordova.plugin.HttpAes256Key16" spec="https://github.com/13546777510/HttpAes256Key16.git" />
<plugin name="cordova-plugin-ios-localized-strings" spec="^1.0.6">
<variable name="MAIN_LANGUAGE" value="English" />
<variable name="ADDITIONAL_LANGUAGES" value="it,fr,de,en-GB,zh-Hans" />
</plugin>
<plugin name="cordova-plugin-localization-strings" spec="^3.1.0">
<variable name="TRANSLATION_PATH" value="translations/app/" />
</plugin>
<plugin name="cordova-plugin-vibration" spec="^3.1.0" />
<plugin name="cordova-plugin-pix" spec="0.0.1" />
</widget>
Plugins:
cordova-plugin-add-swift-support,cordova-plugin-advanced-http,cordova-plugin-android-permissions,cordova-plugin-app-version,cordova-plugin-badge,cordova-plugin-esptouch,cordova-plugin-file,cordova-plugin-inappbrowser,cordova-plugin-ionic-keyboard,cordova-plugin-ionic-webview,cordova-plugin-ios-localized-strings,cordova-plugin-localization-strings,cordova-plugin-nativeaudio,cordova-plugin-nativeclicksound,cordova-plugin-nativestorage,cordova-plugin-network-information,cordova-plugin-networkinterface,cordova-plugin-pix,cordova-plugin-screen-orientation,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-vibration,cordova-plugin-whitelist,cordova-support-google-services,cordova.plugin.HttpAes256Key16,es6-promise-plugin,phonegap-plugin-multidex,phonegap-plugin-push,wifiwizard2
Android platform:
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Running /Users/fanhaojie/Library/Android/sdk/tools/bin/avdmanager list target
Available Android targets:==============] 100% Fetch remote repository...
----------
id: 1 or "android-23"
Name: Android API 23
Type: Platform
API level: 23
Revision: 3
----------
id: 2 or "android-26"
Name: Android API 26
Type: Platform
API level: 26
Revision: 2
----------
id: 3 or "android-27"
Name: Android API 27
Type: Platform
API level: 27
Revision: 3
----------
id: 4 or "android-28"
Name: Android API 28
Type: Platform
API level: 28
Revision: 6
iOS platform:
Xcode 10.2
Build version 10E125
cordova plugin version | grep cordova-plugin-pix
Here is the output:
cordova-plugin-pix 0.0.1 "cordova-plugin-pix"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.