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

Excecute localize failed #3

Open
ngohado opened this issue Nov 23, 2021 · 1 comment
Open

Excecute localize failed #3

ngohado opened this issue Nov 23, 2021 · 1 comment

Comments

@ngohado
Copy link

ngohado commented Nov 23, 2021

Hello,

I'm having problem when integrate OneSky with my Android project

OneSky {
    appId = "YOUR_APP_ID"
    apiKey = "YOUR_ANDROID_API_KEY"
    resourceDirectoryRelativePath = "app/src/main/res/" // You may change it to point to the correct resource folder
}

YOUR_APP_ID > I'm using the id get Project ID get from OneSky Dashboard. For example : 385611
image

YOUR_ANDROID_API_KEY > Im using Public Key get from settings

Here is my config:

OneSky {
    appId = "385611"
    apiKey = "Kx097IhdU8xjO1PkiyTFkNML33trQqgq"
    resourceDirectoryRelativePath = "app/src/main/res/"
}

When I run ./gradlew localize it return error

Execution failed for task ':localize'.
> com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 11 path 

Im very confusing how to get YOUR_APP_ID, and YOUR_ANDROID_API_KEY where

@Izham5354
Copy link

OneSky {
appId = "385611"
apiKey = "Kx097IhdU8xjO1PkiyTFkNML33trQqgq"
resourceDirectoryRelativePath = "app/src/main/res/"
}

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

No branches or pull requests

2 participants