Skip to content

Build error on Android with NS 4.1 #287

@erjdriver

Description

@erjdriver

NS Core project - using 4.1.

Getting the following error during build

`Unable to apply changes on device: emulator-5554. Error is: Failed to build plugin nativescript-google-maps-sdk :
Error: Command ./gradlew failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':releaseCompileClasspath'.

Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
`

I created a new folder structure

./app/App_Resources/Android/src/main/res/values and added the xml file there with the api key.

In the above, I had the create the src/main/res/values folder - wasn't there before.

I also added the meta entry to AndroidManifest.xml file.

The demo program seems to store the xml file in Android/src/main/assets folder - not sure which is correct.

Also getting this error message

No manifest found in /Users/asrock/Documents/test/app/App_Resources/Android/src/main/AndroidManifest.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions