fixes library.references missing new line on newer project.properties
This commit is contained in:
parent
1c469abb46
commit
7b2a2712db
1 changed files with 4 additions and 1 deletions
|
@ -819,7 +819,10 @@ class TargetAndroid(Target):
|
|||
|
||||
# recreate the project.properties
|
||||
with io.open(project_fn, 'w', encoding='utf-8') as fd:
|
||||
fd.writelines((line.encode('utf-8') for line in content))
|
||||
try:
|
||||
fd.writelines((line.encode('utf-8') for line in content))
|
||||
except:
|
||||
fd.writelines(content)
|
||||
if not content[-1].endswith(u'\n'):
|
||||
fd.write(u'\n')
|
||||
for index, ref in enumerate(references):
|
||||
|
|
Loading…
Add table
Reference in a new issue