After creating an Android application project I have found these two errors in console:
Error: Error parsing E:\Android\ANDadt\adt\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml
Error: Error parsing E:\Android\ANDadt\adt\sdk\system-images\android-22\android-wear\x86\devices.xml
It might be a permission issue. Make sure you have writing permissions for that folder. Try starting Eclipse or the SDK Manager as Administrator.
in windows:
copy devices.xml file from
sdk\tools\lib\devices.xml
and paste(override it) to
sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml
This solution worked for me(try it).
For OS X user this is the only thing work for me:
sudo ./eclipse
Copy file devices.xml file(\sdk\tools\lib), and paste it to the location folder where the error occurred. This solution worked for me in Windows 10.
Related
After attending Google IO 2016 extended, I downloaded studio from https://dl.google.com/dl/android/studio/ide-zips/2.2.0.0/android-studio-ide-145.2878421-linux.zip
I extracted it. But after that, I am not able to execute studio.sh..
It shows following error:
To-be-filled-by-O-E-M:~/Applications/android-studio/bin$ ./studio.sh
./studio.sh: 137: ./studio.sh: declare: not found
./studio.sh: 141: ./studio.sh: Syntax error: "(" unexpected (expecting "fi")
Am I missing something ?
Note: I have posted the issue on Google Plus Community Android Studio. Hers's the Link to my post
If you are ubuntu user then you can edit studio.sh and change fist line from
#!/bin/sh
to
#!/bin/bash
It works for me in Ubuntu 14.04.
Original Issue
Just use the previous studio.sh file and it works like a charm!
Edit the file ~/android-studio/bin/studio.sh:
change line 1
#!/bin/sh
to
#!/bin/bash
This issue is fixed in Android Studio 2.2 preview 2 (download from this page).
Fixed bug preventing the IDE from starting on some Linux distributions (in particular where /bin/sh is not bash)
From the changelog.
I also got the same error and i have replaced the latest /bin/studio.sh file with my previous /bin/studio.sh file and it works like charm.
I have an Android program. All the source code is working fine but something happened in Manifest file that prints this.
What does that error INSTALL_PARSE_FAILED_MANIFEST_MALFORMED mean?
[2013-04-16 20:11:29 - BingoBangalore] Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
[2013-04-16 20:11:29 - BingoBangalore] Please check logcat output for more details.
[2013-04-16 20:11:29 - BingoBangalore] Launch canceled!
Activity name should be prefixed with "." in your Manifest file.
I got answer for this issue.
Just delete "gen"folder . It build automatically.
Application will work fine.
In such a case usually do following:
check the manifest-file for syntax errors
clean your project (e.g. build->clean or delete /bin-folder and sometimes /gen-folder)
go to the project/package explorer
right-click on the manifest-file
VALIDATE!
Everything should be fine now.
I am unable to create the android avd. whenever i try to create one through eclipse, i get the following error. I tried everything but went in vain. I am attaching a snap shot, please have a look at it.
First try it in command line as follows: "android create avd-n-c 64M-myAvd tx" (x for target, you can get list of targets with "android list targets").If the problem persists, be sure you have write permission in the target directory.
I think the mksdcard in tools directory was corrupted. So, i downloaded another mksdcard file from the below site:
http://www.wuala.com/cerealkiller37/HTC/Sdk%20Android/android/tools/mksdcard.exe/
It worked!!!!!
Try to set the sdCard size to 64M
I have Jenkins-CI compiling an Android app I'm working on. Compiles it great but it will not upload the release apk via SCP. I have set the source to bin/* and it gives me the following error. Does anyone have a suggestion on what I have configured wrong? I've had it working in the past, but I forgot to get the config before I re-installed Fedora on the machine.
[SCP] Connecting to smccloud.com
ERROR: Failed to upload files
2: No such file
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2289)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1741)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1758)
at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1715)
at be.certipost.hudson.plugin.SCPSite.upload(SCPSite.java:188)
at be.certipost.hudson.plugin.SCPRepositoryPublisher.perform(SCPRepositoryPublisher.java:218)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604)
at hudson.model.Run.run(Run.java:1400)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)
Build step 'Publish artifacts to SCP Repository' changed build result to UNSTABLE
I encountered this error when I was trying to copy to a directory that didn't exist on the target machine. Create the directory(s) on the target first and this should go away and the copy work.
On the target machine you are seeing something like:
No such file or directory
when you try to navigate to the non-existent directory.
If the plugin isn't working for you can use the shell script with expect, as a post build step, to do it for you.
I get this message all the time on my error log:
Could not create the view: Could not initialize class com.ibm.icu.impl.JavaTimeZone.
This situation its bad: each time when I try to open a class I get this message.
What should I do to solve this problem?
see this buddy:What does "Could not initialize class com.ibm.icu.impl.JavaTimeZone" mean?
It could be not related to android, but to your Eclipse version and current platform.
In case it is relevant, the blog post "Could not initialize class com.ibm.icu.impl.JavaTimeZone Error" (by Derek Helbert) could be helpful.
(But only for Eclipse 3.6 on MacOs)
If you are having a serious pain trying to run Eclipse Helios in Mac OS x 10.5.8 and keep getting errors such as the following:
java.lang.NoClassDefFoundError
--or--
An internal error occurred during: "Could not initialize class com.ibm.icu.impl.JavaTimeZone error".
Here is an easy solution:
Edit eclipse.ini with your favorite text editor and add a line at the end "-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU".
It's inside Eclipse.app/Contents/MacOS/eclipse.ini.
Another solution is the following:
Decompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder to any directory you like.
If you cannot find the exact version, just decompress the IBM ICU JAR that's shipped with your version of Eclipse.
In that directory, open the file com/ibm/icu/ICUConfig.properties
Replace
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK
with
com.ibm.icu.util.TimeZone.DefaultTimeZoneType = ICU
Recompress the com.ibm.icu_4.0.1.v20090822.jar file in the eclipse/plugins folder with the modified file
However, it has been pointed out that editing the jar makes it unsigned.
Ran into the same problem with Ubuntu 12.04 and fixed it with:
apt-get --reinstall install tzdata-java