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

Failed to build plugin native-script-barcodescanner for android #178

Open
nairsubinp opened this issue Dec 11, 2018 · 0 comments
Open

Failed to build plugin native-script-barcodescanner for android #178

nairsubinp opened this issue Dec 11, 2018 · 0 comments

Comments

@nairsubinp
Copy link

nairsubinp commented Dec 11, 2018

I have my project working well with nativescript-barcodescanner for iOS. I added the android platform and tried to build the android project, but couldnt build the project. It gives me the below error. I tried removing the platform adding the platform, but that also didnt solve the problem.

tns build android
Executing before-shouldPrepare hook from /Users/sbn/Desktop/App2Rate/app2rate/hooks/before-shouldPrepare/nativescript-dev-webpack.js
Executing before-prepare hook from /Users/sbn/Desktop/App2Rate/app2rate/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 3.1.6
Preparing project...
Executing before-prepareJSApp hook from /Users/sbn/Desktop/App2Rate/app2rate/hooks/before-prepareJSApp/nativescript-dev-webpack.js
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-barcodescanner for android.
Successfully prepared plugin nativescript-fancyalert for android.
Successfully prepared plugin nativescript-loading-indicator for android.
Successfully prepared plugin nativescript-ngx-fonticon for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Failed to build plugin nativescript-barcodescanner :
Error: Command ./gradlew failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'nativescript_barcodescanner'.

Could not resolve all files for configuration ':classpath'.
Could not find gradle.jar (com.android.tools.build:gradle:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.jar
Could not find gradle-core.jar (com.android.tools.build:gradle-core:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle-core/3.1.2/gradle-core-3.1.2.jar
Could not find bundletool.jar (com.android.tools.build:bundletool:0.1.0-alpha01).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.jar
Could not find builder.jar (com.android.tools.build:builder:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/builder/3.1.2/builder-3.1.2.jar
Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
Could not find gradle-api.jar (com.android.tools.build:gradle-api:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle-api/3.1.2/gradle-api-3.1.2.jar
Could not find compilerCommon.jar (com.android.databinding:compilerCommon:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/databinding/compilerCommon/3.1.2/compilerCommon-3.1.2.jar
Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.2/manifest-merger-26.1.2.jar
Could not find sdk-common.jar (com.android.tools:sdk-common:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/sdk-common/26.1.2/sdk-common-26.1.2.jar
Could not find sdklib.jar (com.android.tools:sdklib:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/sdklib/26.1.2/sdklib-26.1.2.jar
Could not find repository.jar (com.android.tools:repository:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/repository/26.1.2/repository-26.1.2.jar
Could not find builder-test-api.jar (com.android.tools.build:builder-test-api:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/builder-test-api/3.1.2/builder-test-api-3.1.2.jar
Could not find ddmlib.jar (com.android.tools.ddms:ddmlib:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.1.2/ddmlib-26.1.2.jar
Could not find tracker.jar (com.android.tools.analytics-library:tracker:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/analytics-library/tracker/26.1.2/tracker-26.1.2.jar
Could not find shared.jar (com.android.tools.analytics-library:shared:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/analytics-library/shared/26.1.2/shared-26.1.2.jar
Could not find layoutlib-api.jar (com.android.tools.layoutlib:layoutlib-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/26.1.2/layoutlib-api-26.1.2.jar
Could not find dvlib.jar (com.android.tools:dvlib:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/dvlib/26.1.2/dvlib-26.1.2.jar
Could not find common.jar (com.android.tools:common:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/26.1.2/common-26.1.2.jar
Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.jar
Could not find protos.jar (com.android.tools.analytics-library:protos:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar
Could not find builder-model.jar (com.android.tools.build:builder-model:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/builder-model/3.1.2/builder-model-3.1.2.jar
Could not find apksig.jar (com.android.tools.build:apksig:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/apksig/3.1.2/apksig-3.1.2.jar
Could not find baseLibrary.jar (com.android.databinding:baseLibrary:3.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/databinding/baseLibrary/3.1.2/baseLibrary-3.1.2.jar
Could not find annotations.jar (com.android.tools:annotations:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/annotations/26.1.2/annotations-26.1.2.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 0s

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

1 participant