I'm using Ksoap2 on Android for connecting Webservice. When I add file Ksoap2.jar downloaded from this site:
All of versions that i get cannot use. The detail of error is: "Archive for required library: 'C:/Users/xxx/workspace/ksoap2-android-2.6.1.jar' in project 'yyy' cannot be read or is not a valid ZIP file"
help me, plz!
See this http://forums.spout.org/threads/eclipse-error-cannot-be-read-or-is-not-a-valid-zip-file.1233/
I think your zip file may be corrupted or did not get downloaded complete....
Related
I am trying to integrate facebook to my android app. I followed facebook tutorial and imported facebook-android-3.14 into Eclipse. However, I got problems with some hidden files, I think. I did google a lot but still cannot figure it out.
It seems that I have to remove the hidden files like '._bolts.jar' from Android Private Library (libs folder) but I could not see it even when I turn on viewing hidden files on Mac. Any one have ideas? Thanks in advanced.
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/AdUnitsSample/libs/._AudienceNetwork.jar' in project 'AdUnitsSample' cannot be read or is not a valid ZIP file AdUnitsSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/NativeAdSample/libs/._AudienceNetwork.jar' in project 'NativeAdSample' cannot be read or is not a valid ZIP file NativeAdSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/facebook/libs/._bolts.jar' in project 'FacebookSDK' cannot be read or is not a valid ZIP file FacebookSDK Build path Build Path Problem
I have downloaded the openvpn code from
https://code.google.com/p/ics-openvpn/source/checkout
and it compile succesfully but when I create a profile and try to connect it .. it will give me an error "Error writing minivpn binary "
the readme file says
Optional: Copy minivpn from lib/ to assets (if you want your own compiled version)
but I havent found any minivpn or lib like this in the package
please let me know if some has worked on it
You should read the README:
Do ./build-native.sh in the root directory of the project.
The minivpn part is obsolete. Early version used to ship a compiled version in the repository.
I am new to Android programming,my task was to create a pdf file in adroid
First I created a Java project using Eclipse (projectA) , wrote code in java to generate a pdf file using itext (Added jars to the project) and its working fine.
Now I created another Android project (ProjectB) , and added the itext jars (similar to projectA) and code, but it is not working properly
Error : Error generating final archive: Found duplicate file for APK: com/itextpdf/text/LICENSE.txt
Origin 1: /home/SudheerB/workspace-Ecclipse/NeedAnalyserTool13/libs/itextpdf-5.3.3-sources.jar
Origin 2: /home/SudheerB/workspace-Ecclipse/NeedAnalyserTool13/libs/itext-xtra-5.3.3-sources.jar
Can someone help me on this?
It is very simple. You are using jar files which have some common classes. so during the generation of apk file, duplicates files are being found.
just use one of the jar files. either "itextpdf.jar" or "itextpdf-xtra.jar". your problem will be solved.
Remove the sources jars from your project and at least that error should go away.
Seems like you're using the jars that are available for Java instead of the Android/GAE port. Please switch to using the official port for Android and Google App Engine. That will solve your problem. This port isn't available from SourceForge, you need to fill out the form at http://itextpdf.com/sales/ and they'll send you a link where you can download it.
I am trying make a restful post from my android application. I have imported the jersey-core1.13, jersey-server1.13 and jersey client1.13 jar files to my project. And when I am creating the client like this :
Client client = Client.create();
I am getting run time error :E/AndroidRuntime(540): java.lang.NoClassDefFoundError: com.sun.jersey.api.client.Client
What is the problem? Can anyone help?
This error comes normally if the build paths for jar files are not configured.
The best method to avoid this problem is keep all your jar files in a folder called libs (create the folder and copy all jars file). If you are using ADT 17+ (Not sure but at least it works in ADT 20)then it automatically configures the build path.
Note: Remove all external jar files from build path (ADT will automatically detect and configure them from libs folder )
Hope this helps you.
For pictorial description of method I described please refer to
http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17
i try to embed the java file for ebay sharing with supported jar files, and i also have the jar file of ksoap2 for xml parsing.
The following error is shown in package,i don`t know how to recover it.
After implementing JRE system library the problem is resolved.