Index: build/android/gradle/generate_gradle.py |
diff --git a/build/android/gradle/generate_gradle.py b/build/android/gradle/generate_gradle.py |
index ab3bd63ceb57edbb09285e642c7cf97902209743..546448258ecdf0b8a2f6e054d413e1598888d773 100755 |
--- a/build/android/gradle/generate_gradle.py |
+++ b/build/android/gradle/generate_gradle.py |
@@ -249,7 +249,7 @@ class _ProjectContextGenerator(object): |
def _GenJniLibs(self, root_entry): |
libraries = [] |
for entry in self._GetEntries(root_entry): |
- libraries += entry.BuildConfig().get('native', []) |
+ libraries += entry.BuildConfig().get('native', {}).get('libraries', []) |
if libraries: |
return _CreateJniLibsDir(constants.GetOutDirectory(), |
self.EntryOutputDir(root_entry), libraries) |