Appcelerator Android Packaging Failed - appcelerator

Getting what appears to be a simple error and I have no idea how to resolve it:
res/drawable/DefaultIcon.png: Invalid file name: must contain only [a-z0-9_.]
The problem with the error is apparent. DefaultIcon.png is already alphabetical. How do I resolve this strange bug so I can package my app for the app store?

This regular expression tells that you have to use only lower-case alphabets, or 0-9 digits, or an underscore or a period (.).
Change the filename to all lowercases like defaulticon.png & it will work.
When I used a file name as DefaultIcon.png, I got the same error.
Then I renamed that file to all lower-cases alphabets & it worked fine.

Related

Unable to Install Facebook Duckling on Windows - Stack Exec Fails

I'm trying to setup Facebook Duckling on Windows 10.
When I execute: stack exec duckling-example-exe it produces the following error:
duckling-example-exe.EXE: /etc/zoneinfo/: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)
I don't understand why I'm getting this error since I followed the recommendation on this GitHub thread which suggests replacing "/usr/share/zoneinfo/" in Duckling/exe/ExampleMain.hs with a link to a folder containing the zoneinfo files. You can see I replaced the path as suggested in the screenshot below:
I also tried adding a double slash as seen below - but it didn't help:
I tried with forward slash instead but this didn't help either:
Moreover, I don't understand where the path: /etc/zoneinfo/ is coming from, if the path is no longer present in ExampleMain.hs? Where is the compiler pulling the path from?
Thanks!
You need to run stack exec duckling-example-exe in the directory where the stack.yaml and project.yaml files of the duckling source code is that you are trying to modify. Otherwise it will use the version of duckling from stackage without your changes.

The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

I am trying to deploy a bot to azure. I am using Bot SDK V3 template. It works locally and tested it with emulator. When I try to publish the project to Azure, I am getting this error:
"obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs to obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Release\Package\PackageTmp\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs failed. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Microsoft.Bot.Sample.SimpleEchoBot 0"
I enabled longpaths on the machine by setting the reg key at Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1. Still, same error.
I also created a short folder on C drive as C:\D and in folder D, I created the VS solution. Still, same error.
I am not able to publish the project to azure. What needs to be done to resolve this?
I've come across this issue and am not yet sure of the root cause, other than it is nesting package objects within package objects.
As a quick fix/workaround; you can remove everything under obj\Release\Package\PackageTmp and then republish.
Optionally, you can use a Pre-build event in your project file to clear out older packages when you build:
set "packagetemp=\obj\Release\Package\PackageTmp"
rmdir /Q /S $(ProjectDir)%packagetemp%

Error: Make Directory: No such file or directory

For some reason, I am getting these 2 errors when I try to run my app.
error: make directory /Users/ameya/Library/Developer/Xcode/DerivedData/TennisTracker-gnfmqlprqnkoxbabnbcmuxgmrskv/Build/Products/Debug-iphonesimulator/TennisTracker.app/Watch/Tennis Tracker WK.app/_WatchKitStub: No such file or directory
error: couldn't remove
'/Users/ameya/Library/Developer/Xcode/DerivedData/TennisTracker-gnfmqlprqnkoxbabnbcmuxgmrskv/Build/Products/Debug-iphonesimulator/TennisTracker.app/Watch/Tennis Tracker WK.app' after command failed: Directory not empty
I am relatively new to xcode and don't really have an idea about what this error means or how to fix it. I currently attempted to upgrade from WatchOs1 to Watchos2 by deleting my old files. I've already had some troubles trying to fully get rid of my old files and implementing the new ones. Is this in anyway related to the error that I am facing?
You have spaces in your watch app Project name.
This will lead to problems with file path, since the spaces aren't being escaped and the path isn't enclosed by double quotes.
For the first issue, the _WatchKitStub file couldn't be removed since the path wasn't escaped, so the file couldn't be found.
That triggered the second issue, when the now-quoted path couldn't be deleted (since the directory wasn't empty because the earlier command failed).
How to fix this issue:
You should create a new watch app target named TennisTrackerWK, change the target for your existing source files, then delete the old watch app target.

Downloading all files from a FTP directory, running into problems with escaping spaces

I have my camel configured to download all files from a specific FTP directory. Now this is all easy enough and everything seems to be working fine. However, I am running into errors when the files contain a space in their names such as File 123.csv. I know I could specifically target the files with an escape character. The only difficulty is that these files are dynamic in nature and change daily, so I will not know which files may or may not have spaces.
I figure I can just read all the file URI and make adjustments from there. But I was wondering if there is any Camel specific way to handle this.
Errors: java.lang.IllegalArgumentException: Illegal character in path at index 60: hdfs://test.net/user/CamelTests/File Layout.csv
GenericFileOnCompletion - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy#fe8d1b for file: RemoteFile[File Layout.csv]
Camel Code
from("{{ftp.serverLP}}/Memo/Loss?username=ftp&password=pass")
.to("hdfs2://Test.net/user/CamelTests/?fileSystemType=HDFS")
.log("Downloaded file ${file:name} complete.");
Try changing the .to(..) to use a non-HDFS file system.
The error posted seems to indicate a problem with the destination to which the files are being copied (HDFS), not the FTP source.

Sketchup ruby definitionlist load method error: Invalid component file

When I create a script file and load it from the console with:
load '//192.168.0.0/Mağaza/script.rb'
I get 'Invalid component file' error for:
someModel = Sketchup.active_model.definitions.load '//192.168.0.0/Mağaza/Definitions/model.skp'
But when running the code directly in console, it works.
Any idea why?
DefinitionList.load is a completely different method from Ruby's load.
To load a component from a URL you need to use model.definitions.load_from_url:
http://www.sketchup.com/intl/en/developer/docs/ourdoc/definitionlist#load_from_url
After two days, I figured out that the problem was the encoding of 'ğ' in the folder name (mağaza). I tried ANSI and UTF-8 encoding in my script file but nothing changed. But when print the path name in the console, it turned out that the character was not encoding properly.

Resources