I got an error with Android SDK Content Loader
has encountered a problem. parseSdkContent failed java.lang.NullPointerException
After bsod.. I have tried to delete the avd folders and .ini files. The SDK is working properly again. But, the problems were the avd folders that i have backup cannot be restored since when i restored them, the problems started occuring again. Is there any way to get my avd data again?
Follow these steps:
C: -> Users -> [abc] -> Delete .android folder
Related
I tried building a java project using maven. I am getting the error "org.apache.maven.plugins:maven-clean-plugin:2.3:clean (default-clean) on project : failed to delete directory:" and hence the build is failing. The server is glassfish.
There can be many causes for this error. One of the main reasons could be that the directory maven is trying to delete is locked.
Try to access the directory that maven is trying to delete. If you get a prompt like "the file or directory is corrupted or unreadable", try fixing disk errors. It worked for me.
The steps I followed are:
Launch CMD on your Windows PC via the Start Menu. Right click on it
to run it as administrator.
Type chkdsk /f x: in the Command Prompt window and press Enter to
execute the command. X here is the drive letter of the corrupted
partition that you want to check. Please replace it with your own
drive letter.
After upgrading to the latest versions of Visual Studio for Mac, Xamarin, and Xcode, I am unable to create a signed IPA archive. Everything runs on the simulator, everything builds fine in my release configuration. I can even create the archive just fine. But after I click "Sign and Distribute", regardless of whether I try to publish to the App Store or simply save the IPA to disk, I get the extremely generic "Failed to create IPA archive" message with no other detail about what failed.
As always with these types of problems, this worked the last time I tried to publish (2 months ago). Even trying to use "Sign and Distribute" on an archive I previously published successfully to the App Store fails with the same message. Are there any logs for this where I can see exactly what is failing? The Archive output window at the bottom of the screen doesn't show activity for this stage of the process.
UPDATE:
After finding the logs, was able to see the following error that shows that for some reason after upgrading the apps, permissions were somehow lost for creating the zip archive:
zip -r -y "/Applications/Xcode.app/MyApp.ipa" Payload
zip I/O error: Permission denied
zip error: Could not create output file (/Applications/Xcode.app/MyApp.ipa)
zip exited with code 15
ERROR:Failed to create IPA archive.
Finshed
So now the question becomes why, and what steps need to be taken to fix this the proper way (i.e., not just brute-forcing broad permissions)?
Are there any logs for this where I can see exactly what is failing?
To find Mac logs through:
You can select the Go > Go to Folder menu item in Finder, and then copy and paste any of these paths into the dialog.
Visual Studio for Mac
~/Library/Logs/VisualStudio/7.0 (this number may change depending on
the version you are using)
This folder can also be opened via "Help -> Open Log Directory".
If you meet the Permission denied error in the log, this may be due to saving the IPA in the XCode.App folder. You can try a different location.
If you still meet problem, you can send a feed back inside visual studio for more help.
It's very likely due to permission issue while zipping the archive.
To check if it's your case:
Open the log folder at ~/Library/Logs/VisualStudio/7.0 or in Visual Studio for Mac Help > Open Log Directory
Find and open the last log file for publishing (like Publishing.yyyy-mm-dd__hh-mm-ss.log)
Scroll to the last rows of that file. If it contains something like this (see the block below) so it's your case
zip I/O error: Permission denied
zip error: Could not create output file (/Applications/Xcode.app/YourApp.ipa)
zip exited with code 15
ERROR:Failed to create IPA archive.
Finished
In this case, once you see Output IPA file popup, just choose other save location (Desktop for example)
I have started to use iCloud Drive to persist my files between two Macbooks I work on (MacbookA and MacbookB). iCloud creates a clone of my Desktop on both computers that are configured with iCloud. So on MacbookB I've got the path /Users/<ME>/Desktop/Desktop - MacbookA and /Users/<ME>/Desktop/Desktop - MacbookB.
I moved an Xcode project to /Users/<ME>/Desktop/Desktop - MacbookA and am now failing to build with the error - `/Users//Library/Developer/Xcode/DerivedData/-ffucveeerdkfefbhdxktyzhzcsko/Build/Intermediates/.build/Debug-iphonesimulator/.build/Script-BECCC6851D2428FD0068813F.sh: line 2: /Users//Desktop/Desktop: No such file or directory
I'm unable to make sense of this. The script seems to be an Xcode script and not a custom one. Has anyone experienced this problem?
`
In Visual Studio 2013 I am attempting to File Publish my website project to a remote web server. I am getting the following error:
C:\Program
Files\MSBuild\Microsoft\VisualStudio\v12.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets(720,5):
Error MSB3231: Unable to remove directory
"obj\Release\AspnetCompileMerge\TempBuildDir". Access to the path
'AdditionalPhotos.aspx' is denied.
I have tried cleaning and rebuilding, with no luck. Restarting VS did not help. I checked the permissions on the directory and file referenced in the error and Windows Explorer would not let me see the file and folder permissions (You do not have permission to view or edit this object's permission settings.) The project is stored on a network drive, and I am administrator of that drive, so I'm not sure why I can't see permissions there.
Any ideas as to how to get around this issue? Thanks for your help!
Running Titanium Appcelerator 0.8.1 on a Windows XP Virtual Machine, with Android SDK 2.1
When running build/install app, getting the following error (last line broken for display here):
[TRACE] f = open(os.path.join(dest, dest_file), "w")
[TRACE] IOError: [Errno 13] Permission denied:
'C:\\Documents and Settings\\firstname.surname\\Desktop\\MyApp\\build\\android\\.classpath'
Removing .classpath results in .classpath being created, but the error simply moves onto the next file it has to write to.
The files are in a git repository, checked out via msysgit, but the same error occurs when the files are copied directly from the git server to the Windows machine. Unfortunately the Titanium dev app won't rebuild the Android package for an existing app if the build\android files are missing, so it's not possible just to not check these into git.
The files appear to have the correct permissions - are writable by the current user account, don't have the read-only flag set (checked via 'attrib'), and have set the access options and owner via the Security/Advanced dialogues on the files and directories (and checked by a Windows IT admin here)
As far as I can tell, nothing else has the file open (a possible cause of IOError 13).
What could be the reason here? Could Git be the culprit?
Answering my own question in case anyone else gets the same issue:
removing the hidden flag (with attrib -H) fixes the file permission problem.
(the Hidden flag was set by msysgit, to match the 'hidden' nature of dotfiles in Unix)