Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with android.library_references #620

Open
saband opened this issue Feb 8, 2018 · 0 comments
Open

Issue with android.library_references #620

saband opened this issue Feb 8, 2018 · 0 comments

Comments

@saband
Copy link

saband commented Feb 8, 2018

If I add to buildozer.spec some value for android.library_references, for example android.library_references = libs/google-play-services_lib it will be added in the project.properties. It's ok but new version of build.py (in buildozer 0.34) use project.properties to generate AndroidManifest.xml and build.gradle and there is a bug:

with open('project.properties', 'r') as fileh:
    target = fileh.read().strip()
android_api = target.split('-')[1]

Because in this case in target we have target=android-24\nAPP_PLATFORM=19\nandroid.library.reference.1=../../../../../../libs/google-play-services_lib and in android_api -24\nAPP_PLATFORM=19\nandroid.library.reference.1=../../../../../../libs/google-play-services_lib and this value go to AndroidManifest.xml:

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="24
APP_PLATFORM=19
android.library.reference.1=../../../../../../libs/google" />

and build.gradle:

android {
	compileSdkVersion 24
APP_PLATFORM=19
android.library.reference.1=../../../../../../libs/google
	buildToolsVersion '27.0.3'
	defaultConfig {
		minSdkVersion 19
		targetSdkVersion 24
APP_PLATFORM=19
android.library.reference.1=../../../../../../libs/google
		versionCode 1010000
		versionName '1.1.0.0'
	}

So it leads to syntax error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants