I have recently downloaded the SDK starter pack 'android-sdk_r10-windows' for Android development. I have Windows Vista OS. But now when I am starting the SDK Manager to install the Platform tools i am getting the below erorrs -
XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
XML verification failed for https://dl-ssl.google.com/android/repository/addons_list.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
I also tried the Force settings in Settings -> Misc, but it too didn't help.
Can someone throw some pointers. I am a bit stuck as I have downloaded the Starter pack and not able to figure out what could be wrong.
Thanks in advance.
I was facing same problem in eclipse as well as android studio and i was able to solve it by changing the computer language. check your computer language and set only English language in your computer.
Related
When I create an android application it reports the following error (formatted for readability):
C:\Program Files\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2):
Error MSB6004: The specified task executable location
"C:\Users\Rashid\AppData\Local\Android\android-sdk\\tools\zipalign.exe"
is invalid. (MSB6004) (newTest)
A search for the error ID, MSB6004, suggests that the fix for this error is to update Xarmin to at least version 3.1.223. The linked question also discusses copying files in C:\Program Files or wherever Xarmin is installed, but in theory that should not be necessary.
I am in the process of learning to create google-app-engine as well as to generate Endpoint client library(for Android) from my app-engine application.
So far I have done the following things
Step 1 : Create Endpoint API : Complete
I have followed the instructions given here(using Maven) and have successfully deployed the app-engine application
https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/
Step 2 : Generate Client Library(for Android) : Getting ERROR here
I have followed the instruction here
https://developers.google.com/appengine/docs/java/endpoints/gen_clients
I gave the following command from the root directory of my app-engine application
endpoints.sh get-client-lib Greetings
But getting the following error
Dec 16, 2013 5:47:43 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
SEVERE: Received exception processing ./war/WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate /Users/raj/Documents/workspace-maven/helloendpoints/./war/WEB-INF/appengine-web.xml
Give below are my questions,
Is this command execution right?
endpoints.sh get-client-lib Greetings
In the documentation in google ; the second argument is
specified as 'get-client-lib' I have given the same name while
executing the command ; is this right?
As you can see in the error ; it describes ; file -
helloendpoints/./war/WEB-INF/appengine-web.xml could not be located.
The file is indeed available in my application, but is located in a
different directory(indeed in 3 locations) ; What should I do here?
./src/main/webapp/WEB-INF/appengine-web.xml
./target/generated-sources/appengine-endpoints/WEB-INF/appengine-web.xml
./target/helloendpoints-1.0-SNAPSHOT/WEB-INF/appengine-web.xml
The documentation suggest me to edit 'web.xml' file. But the file is
available in 3 location and am not sure which one I have to edit(I
have edited the file in 3rd location)
./src/main/webapp/WEB-INF/web.xml
./target/generated-sources/appengine-endpoints/WEB-INF/web.xml
./target/helloendpoints-1.0-SNAPSHOT/WEB-INF/web.xml
I am finding it quite difficult to resolve this issue ; as there is no other documentation (or) examples available in web other than the Google official documentation.
Would appreciate if some-one can help me to resolve this. Thank you.
you just need to make sure that, you directory exist and that you have the required files into the directories. I can also use the maven goal to make the generation, I read a complete article on the issue here. http://thenavigatorme.blogspot.com/2014/05/how-to-resolve-google-cloud-endpoints.html
Hope this helps.
While starting on eclipse I am getting below message:
Android SDK ping has encountered a problem,
ping usageServer failed
OnClick on details:
pingUsageServer failed
Bad version: 22.0.5
I know this question is already posted, but I didn't find any relevant solution for this. I am using windows 8.
While running the SDK:
////////////////////////////////////////////
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Validate XML: http://dl-ssl.google.com/android/repository/repository.xml
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Done loading packages.
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Validate XML: http://dl-ssl.google.com/android/repository/repository.xml
XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
Done loading packages.
Finally I solved the issue by updating hosts file.C:\Windows\System32\Drivers\etc, in last line I updated 74.125.237.1 dl-ssl.google.com, and second thing I change the windows language Hindi to english.
It's mainly because when you have other languages installed in parallel to English.
For correcting this issue go to: control panel > language > Advance Settings. Set Override for Windows display language to English. Do the same for Override for default input method and then restart Eclipse.
I have two problems with android SDK.The first is that after installing sdk manager I can not install new plateform,tools,sysimage etc online it gives following error:
Fetching
Validate XML
XML verification failed for .
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <>.
Fetched Add-ons List successfully
Fetching URL:
Validate XML:
XML verification failed for .
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <>.
Fetching URL:
Validate XML:
Failed to fetch URL , reason: addon.xml
Done loading packages.
I tried force https.
http in place of https.
I am using DSL for internet and not using any proxy to connect to internet.
For the sake of removing this problem I also tried proxy server but all in vain.
So I installed all the updates offline APD v2 helped me with downloading.
I used both Eclipse and Netbeans for dev.Everything worked fine,until I tried to run a new project and even sample project.
On Eclipse it gave me following error:
Same problem was with netbeans:
Creating redLight-debug-unaligned.apk and signing it with a debug key...
D:\Android\android-sdk\tools\ant\build.: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.:
com.android.sdklib.build.ApkCreationException: java.lang.ArrayIndexOutOfBoundsException: 13
I am new in android app development and trying to rebuild my Java Application for android platform,but I am stuck in first step.
Please help me here.
Solution for your first problem is simple : Line -१:-१, it shows u r language for windows os is set to hindi (IN_HI).
Goto Control panel region & language option change language to English for all formats.
Restart machine & fetch xml.
I am also facing second problem solution to that is not yet found
check this: https://groups.google.com/forum/?fromgroups#!topic/android-developers/BvO5g6RMamo
Also I have updated bug in Android issues :
http://code.google.com/p/android/issues/detail?id=28824
I am trying to look at Android examples from Apress and Wiley's books.
Errors occur when looking at code from both companies.
ie. Apress Beginning Android http://www.apress.com/downloadable/download/sample/sample_id/584/
Extracted Chapter7 to Z:\new\Chapter7
FYI Android SDK location Z:\eclipse\Android\android-sdk
File->New->Android Project->Create Project From Existing Code
Selected Z:\new\Chapter7
Build Target Android 2.2
AM able to get HelloWorld and applications typed in to work with current Eclipse setup to run on hardware and simulators, but when attempting to look at others sorce code am getting errors.
When opening source code from either companies books I get similar errors
[2011-07-27 02:26:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml: java.io.FileNotFoundException: Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:26:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml: java.io.FileNotFoundException: Z:\eclipse\Android\android-sdk\samples\android-8\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:26:45 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\new\AndroidManifest.xml: java.io.FileNotFoundException: Z:\new\AndroidManifest.xml (The system cannot find the file specified)
[2011-07-27 02:30:41 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read Z:\new\AndroidManifest.xml: java.io.FileNotFoundException: Z:\new\AndroidManifest.xml (The system cannot find the file specified)
Eclipse is trying to create projects from folders Z:\new\ and Z:\eclipse\Android\android\samples\android-8, which I can assure you is wrong. Is there another project you are making in which you are creating from those two paths? I know for a fact that Z:\eclipse\Android\android\samples\android-8 has multiple projects inside and you need to specify the exact project.
For instance, inside android-8, I see that there is ApiDemos and BackupRestore, you need to select those in order for Eclipse to find the AndroidManifest.xml files.
As for the other link (Z:\new\), make sure you have selected Z:\new\Chapter7, it looks like you didn't do that. it's looking in the \new\ folder for the AndroidManifest.xml when it should be looking in \new\Chapter7.