Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

I got it working on the project, but when I added the same code on other project in another account. The build process is again started giving me Build Error. I think the issue is related to Android version used for building the code. Since If I export the project and create the apk with mvn package on my local machine, it gets build successfully. Please check the screenshot below, the app id is mentioned in the url, you can try building it yourself.
Image

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

Now the project started building. This is what I did -

1) Deleted both pom.xml
2) Deleted AndroidManifest.xml
3) Then did "Undo All Sources Changes" for Android folder
4) Deleted Everything related to Barcode Scanner from pom.xml files and AndroidManifest.xml file
5) Readded the jar and libraries

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

Today, I deleted the jar file from my project. However, my project is still getting built without giving any error. And the plugin for which jar files is needed is working properly. What is happening? I have uploaded the modified jar files, but still the project is getting built with the old jar files.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Adding Plugins with JAR and .SO library files

Rahul,

Probably, your plugin uploaded during build from maven, cause you haven't removed dependency from pom.xml

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

So to make it work I have to remove the dependency from pom.xml and recreate the build and after creating the build I have to re-upload the jar file and modify the pom?

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

Also I have added a code to close the activity of the after 30 secs. This is the code

code
new Handler().postDelayed(new Runnable(){

Code: Select all

@Override 
public void run() { 
 // TODO Auto-generated method stub 
             Log.d("CordovaLog","Finishing Activity"); 
 finish(); 
} 

     }, 32000); 

/code

This works perfectly when I run it via Eclipse, but it doesn't work when I build it via Appery.io.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

Adding Plugins with JAR and .SO library files

Rahul,

We are very sorry, but your question is outside of support's scope.

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

What to do with that jar caching issue? Whenever I upload new changes to jar it just doesn't get reflected.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Adding Plugins with JAR and .SO library files

Hello Rahul,

Unfortunately, hard to say what may cause this.
As Egor said, plugins are outside the scope of support.
Let us know if we can be of further assistance.

Rahul Pandey
Posts: 0
Joined: Fri Mar 27, 2015 3:03 pm

Adding Plugins with JAR and .SO library files

Nevermind, I got it working. In case anyone else faces the same problem. I have to increase the version number in pom.xml for every changes and sometimes have to re-add the plugin with jar files with new increased version number.

Return to “Issues”