Giter Site home page Giter Site logo

Comments (6)

AeroHil avatar AeroHil commented on September 10, 2024

I am getting the same issue. Also, crashes with devices running Android 5.1+

from phonegap-parse-plugin.

mwthinker avatar mwthinker commented on September 10, 2024

I had a similar problem, solved it by adding the code stated in Android Quirks in the README.md file.

from phonegap-parse-plugin.

AeroHil avatar AeroHil commented on September 10, 2024

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.

opedrero avatar opedrero commented on September 10, 2024

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.

AeroHil avatar AeroHil commented on September 10, 2024

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

screen shot 2015-10-27 at 9 00 12 pm

from phonegap-parse-plugin.

opedrero avatar opedrero commented on September 10, 2024

I finally use another plugin ( https://github.com/taivo/parse-push-plugin ), thks for your answer

from phonegap-parse-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.