Page 2 of 3
Adding Plugins with JAR and .SO library files
Posted: Wed Apr 01, 2015 6:53 am
by Rahul Pandey
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.
Adding Plugins with JAR and .SO library files
Posted: Wed Apr 01, 2015 8:47 am
by Rahul Pandey
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
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 02, 2015 12:02 pm
by Rahul Pandey
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.
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 02, 2015 12:24 pm
by Egor Kotov6832188
Rahul,
Probably, your plugin uploaded during build from maven, cause you haven't removed dependency from pom.xml
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 02, 2015 12:59 pm
by Rahul Pandey
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?
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 02, 2015 1:25 pm
by Rahul Pandey
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.
Adding Plugins with JAR and .SO library files
Posted: Fri Apr 03, 2015 9:29 am
by Egor Kotov6832188
Rahul,
We are very sorry, but your question is outside of support's scope.
Adding Plugins with JAR and .SO library files
Posted: Mon Apr 13, 2015 12:09 pm
by Rahul Pandey
What to do with that jar caching issue? Whenever I upload new changes to jar it just doesn't get reflected.
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 16, 2015 8:21 am
by Alena Prykhodko
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.
Adding Plugins with JAR and .SO library files
Posted: Thu Apr 16, 2015 10:29 am
by Rahul Pandey
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.