Comments (6)
I am getting the same issue. Also, crashes with devices running Android 5.1+
from phonegap-parse-plugin.
I had a similar problem, solved it by adding the code stated in Android Quirks in the README.md file.
from phonegap-parse-plugin.
ah. thanks@mwthinker. that helped. (Though I did try that before posting this, but gave up too fast...)
For those of you still looking at this problem (or similar), this is what I found:
Doing the Android Quirks note with a Cordova app, you actually have to MAKE the App.java class and put it somewhere inside your android/src folder with the proper package name. Then add the xml attribute 'android:name' as part of the 'application' tag of the AndroidManifest.xml.
Don't do what I did, which is put it inside the MainActivity.java class and fails to compile, then give up...
Also note that, if you do 'cordova platform remove android' then add it back again, this file will be deleted. You would need to add it again (for those of you, like me, who do not check in the 'platforms' folder into git)
from phonegap-parse-plugin.
I add App.java file with this code:
package com.editartgroup.ldi;
import android.app.Application;
import org.apache.cordova.core.ParsePlugin;
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
ParsePlugin.initializeParseWithApplication(this);
}
}
And I add tag in application AndroidManifest.xml:
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.editartgroup.ldi.App" android:supportsRtl="true">
but when i try cordova run android:
platforms/android/src/com/editartgroup/ldi/App.java:11: error: cannot find symbol
ParsePlugin.initializeParseWithApplication(this);
^
symbol: method initializeParseWithApplication(App)
location: class ParsePlugin
1 error
:compileDebugJava FAILED
Can you help me please?
Thanks 4 all!!!
from phonegap-parse-plugin.
That's exactly what I have, so the only thing I can think of is you might have a different version of the ParsePlugin?
Also make sure you have the org directory in your build
from phonegap-parse-plugin.
I finally use another plugin ( https://github.com/taivo/parse-push-plugin ), thks for your answer
from phonegap-parse-plugin.
Related Issues (20)
- Android version crashing at start
- Android update Manifest to include ParsePushBroadcastReceiver HOT 1
- Install command pointing out to benjie HOT 1
- Installation section of documentation shows wrong URL
- Question : How to get device token ?
- Allow ability to switch between dev & prod keys
- Bad repository in README
- BIT CODE Xcode 7 ISSUE HOT 7
- Error when i try run in Android HOT 2
- Undefined symbols for architecture arm64 HOT 4
- Blank white icon in staus bar(android lollypop)
- Advice for running the app on Windows (and Cordova 5)
- Update Parse iOS SDK to 1.10.0 HOT 1
- Can't register Push Notification service with iOS Devices - PhoneGap ParsePlugin HOT 9
- Android class missing bolts-tasks
- hasPermission?
- Dreaded PFFacebookUtils.h issue
- Android can't handle payload HOT 1
- Parse is shutting down: Migrating server - Will this plugin work with migrated server running with parse? HOT 2
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 phonegap-parse-plugin.