I see a few different problems here.
This doesn't have anything to do with Jenkins, so a better place to ask
would have been an Android mailing list, Stack Overflow, or the Android
Tools (adt-dev) mailing list etc..
The error explanation says that all backslashes *and colons* need to be
escaped, which you haven't done.
Yes, the suggested fix that Lint provides is wrong (it only includes the
backslashes, not the colon), but that was fixed in the bug you linked
to. That bug was fixed in January, so it seems you're still using a
outdated version of the Android SDK tools.
If you believe you have the latest SDK tools, you're escaping the path
correctly, and you *still* have this problem, you can always ignore the
`PropertyEscape` error, or downgrade it to a warning:
https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide#TOC-Lint-support
Regards,
Chris
On 30/08/15 21:25, Kirshan Luhana wrote:
> Thanks again for your feedback.
> Yes I tried this pattern already but same problem see bellow results.
> There is some discussion on this issue but I am not getting, may be some
> experience can guide.
>
>
https://code.google.com/p/android/issues/detail?id=92789
>
>
>
>
> sdk.dir=C:/Users/kirshan/AppData/Local/Android/sdk
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Explanation for issues of type "PropertyEscape":
> All backslashes and colons in .property files must be escaped with a
> backslash (\). This means that when writing a Windows path, you must escape
> the file separators, so the path \My\Files should be written as
> key=\\My\\Files.
>
> 1 errors, 0 warnings
> Wrote XML report to D:\jenkinsjobs\workspace\build\reports\lint.xml
> :*lint* FAILED
>
>
>
>
> On Sunday, 30 August 2015 17:21:49 UTC+2, walter.kelt wrote:
>
>
> Have you tried using a single "/" instead of "\" or "\\". Windows
> can deal with both
> types of "separators".
>
>>> C:/Users/kirshan/AppData/Local/Android/sdk
>
>
>
> On Aug 30, 2015, at 7:22 AM, Kirshan Luhana wrote:
>
>> Thanks for quick response. Yes I tried many pattern but all fails :(
>> tried also shell commands to alter local.property fie as guided
>> here
https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project
>> <
https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project>
>>
>>
>> On Sunday, 30 August 2015 13:09:13 UTC+2, walter.kelt wrote:
>>
>> Seems that the error message is documenting the issue nicely.
>> Have you tried the suggested resolution of escaping the
>> backslash ?
>>
>> Sent from my iPad
>>
>> On Aug 30, 2015, at 6:50 AM, Kirshan Luhana
>> <
kirsha...@gmail.com> wrote:
>>
>>> Hi
>>>
>>> I am trying to solve this issue from few days but still can
>>> not get any solution please guide how can I fix it.
>>>
>>> I am running Jenkins on Windows 10 when I compile Android
>>> application I am getting error
>>>
>>>
>>> :*compileLint*
>>>
>>> :*lint*
>>> Ran lint on variant debug: 1 issues found
>>> Ran lint on variant release: 1 issues found
>>> D:\jenkinsjobs\workspace\local.properties:2: Error: Windows file separators (\) must be escaped (\\); use C:\\Users\\kirshan\\AppData\\Local\\Android\\sdk [PropertyEscape]
>>> sdk.dir=C:\\Users\\kirshan\\AppData\\Local\\Android\\sdk
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>> Explanation for issues of type "PropertyEscape":
>>> All backslashes and colons in .property files must be escaped with a
>>> backslash (\). This means that when writing a Windows path, you must escape
>>> the file separators, so the path \My\Files should be written as
>>> key=\\My\\Files.
>>>
>>> 1 errors, 0 warnings
>>> Wrote XML report to D:\jenkinsjobs\workspace\build\reports\lint.xml
>>> :*lint* FAILED