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

Android SDK build issue #3334

Closed
DharmikAnghan opened this issue Dec 5, 2023 · 2 comments
Closed

Android SDK build issue #3334

DharmikAnghan opened this issue Dec 5, 2023 · 2 comments

Comments

@DharmikAnghan
Copy link

hello everyone,
I am trying to open a demo project in that is on it https://github.com/prebid/prebid-mobile-android . when i go in runing stat then a GitHash show error

here is build.gradle file :

apply from: '../android.gradle'
apply from: '../publisher.gradle'
apply from: '../tests.gradle'

android {
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}

defaultConfig {
    buildConfigField "String", "GitHash", "\"${getGitHash()}\""
    buildConfigField "String", "VERSION", "\"${versionName}\""
    buildConfigField "String", "OMSDK_VERSION", "\"${omSdkVersion}\""
}

}

dependencies {
implementation project(":omsdk-android")

implementation 'androidx.annotation:annotation:1.5.0'

implementation 'com.google.android.gms:play-services-base:18.1.0'
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.15.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.15.1'

implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0"

}

error is:
error: unclosed string literal
public static final String GitHash = "Microsoft Windows [Version 10.0.19045.3693]

@SyntaxNode
Copy link
Contributor

Why are you asking about the Prebid Android SDK in the Prebid Server repository? There are different teams working on the different Prebid projects. You'll likely get a better response asking this in the https://github.com/prebid/prebid-mobile-android project, Many of us have never built the Android SDK and cannot help resolve build issues.

@bretg
Copy link
Contributor

bretg commented Dec 6, 2023

Please re-open over in the android repo

@bretg bretg closed this as completed Dec 6, 2023
@bretg bretg changed the title Open project issue Android SDK build issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants