nstudio / nstudio/nativescript-plugins

@nstudio/nativescript-camera-plus: android:attr/lStar not found

Open
#143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
42
Avg merge
49m
Merged PRs (30d)
1

Description

I am using NS 8.5.3 and when I try to build the app on Android, I get the following error:

AAPT: error: resource android:attr/lStar not found.

The error seems to be in ...platforms\tempPlugin\nativescript_camera_plus\build\intermediates\merged_res\release\values\values.xml:2516

Here is my package.json:

{
  "id": "com.company.app",
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "scripts": {
    "debug.android": "ns clean; ns debug android --env.development",
    "build.ios": "ns clean; ns build ios",
    "debug.ios": "ns clean; ns debug ios --env.development",
    "run.ios": "ns clean; ns run ios --env.development"
  },
  "dependencies": {
    "@nativescript-community/universal-links": "^3.0.0",
    "@nativescript/appversion": "^2.0.0",
    "@nativescript/contacts": "2.1.0",
    "@nativescript/core": "8.5.1",
    "@nativescript/firebase-core": "^3.1.2",
    "@nativescript/firebase-messaging": "^3.1.2",
    "@nativescript/firebase-remote-config": "^3.1.2",
    "@nativescript/local-notifications": "^6.1.1",
    "@nativescript/social-share": "2.3.0",
    "@nativescript/theme": "3.0.2",
    "@nstudio/nativescript-camera-plus": "4.2.0",
    "@nstudio/nativescript-carousel": "^8.0.3",
    "@nstudio/nativescript-loading-indicator": "4.1.2",
    "@triniwiz/nativescript-image-cache-it": "^7.3.0",
    "moment": "^2.26.0",
    "nativescript-imagecropper": "^4.0.3",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-numeric-keyboard": "^5.0.2",
    "nativescript-permissions": "1.3.12",
    "nativescript-ui-listview": "15.2.3"
  },
  "devDependencies": {
    "@nativescript/android": "8.5.3",
    "@nativescript/ios": "8.5.1",
    "@nativescript/types": "8.5.0",
    "@nativescript/webpack": "5.0.14",
    "typescript": "~4.5.5"
  },
  "gitHead": "d8bdf0799a219051f28f8abd5c258d2bf2fce6e1",
  "readme": "NativeScript Application",
  "main": "./app/app.ts"
}

I tried cleaning the project and building again, but this did not help.

Any idea on how to resolve this issue?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Android build with @nativescript/android 8.5.3 and @nstudio/nativescript-camera-plus 4.2.0, then inspect the reported platforms/tempPlugin/nativescript_camera_plus/build/intermediates/merged_res/release/values/values.xml entry. Compare the plugin and NativeScript Android versions involved in the failing build. Done means the Android build completes without the android:attr/lStar error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.