Merge pull request #576 from kivy/fix_old
Fix old toolchain index error
This commit is contained in:
commit
3b204cbb93
1 changed files with 1 additions and 1 deletions
|
@ -854,7 +854,7 @@ class TargetAndroid(Target):
|
|||
fd.writelines((line.decode('utf-8') for line in content))
|
||||
except:
|
||||
fd.writelines(content)
|
||||
if not content[-1].endswith(u'\n'):
|
||||
if content and not content[-1].endswith(u'\n'):
|
||||
fd.write(u'\n')
|
||||
for index, ref in enumerate(references):
|
||||
fd.write(u'android.library.reference.{}={}\n'.format(index + 1, ref))
|
||||
|
|
Loading…
Reference in a new issue