← 输入框|github.com|刷新
Skip to content

Devtools 0.0.1 Error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String #10513

Open

Description

@tomcoonen

Issue Description

Seems like some casting is missing for local storage Boolean values? Error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String.

Reproduction

Running 8.7.0 with the @nativescript/devtools with existing local storage values.

Relevant log output (if applicable)

Error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
  Error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

Environment

OS: macOS 14.4.1
CPU: (10) arm64 Apple M1 Max
Shell: /bin/zsh
node: 20.11.1
npm: 10.2.4
nativescript: 8.7.0

# android
java: 11.0.22
ndk: Not Found
apis: 23, 30, 31, 33
build_tools: 28.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0, 33.0.1
system_images:
  - android-29 | Google APIs ARM 64 v8a
  - android-30 | Google APIs ARM 64 v8a
  - android-31 | Intel x86 Atom_64

# ios
xcode: 15.3/15E204a
cocoapods: 1.14.2
python: 3.12.2
python3: 3.12.2
ruby: 3.2.0
platforms:
  - DriverKit 23.4
  - iOS 17.4
  - macOS 14.4
  - tvOS 17.4
  - visionOS 1.1
  - watchOS 10.4

Dependencies

"dependencies": {
  "@master.technology/permissions": "^2.0.1",
  "@nativescript/appavailability": "^2.0.0",
  "@nativescript/appversion": "^2.0.0",
  "@nativescript/brightness": "~2.0.0",
  "@nativescript/core": "^8.3.2",
  "@nativescript/devtools": "^0.0.1",
  "@nativescript/firebase-core": "^3.2.0",
  "@nativescript/firebase-crashlytics": "^3.2.0",
  "@nativescript/geolocation": "^8.0.2",
  "@nativescript/localize": "^5.0.4",
  "@nativescript/tailwind": "^2.0.0",
  "@nativescript/theme": "~3.0.2",
  "axios": "^0.28.0",
  "date-fns": "^3.3.1",
  "debug": "^4.3.4",
  "nativescript-audio": "^6.2.6",
  "nativescript-dna-deviceinfo": "^3.7.3",
  "nativescript-phone": "^3.0.3",
  "nativescript-qr-generator": "^3.0.0",
  "nativescript-ui-sidedrawer": "^15.2.3",
  "nativescript-vue": "~2.9.2",
  "nativescript-vue-devtools": "^1.5.1",
  "nativescript-vue-navigator": "^1.2.0",
  "slugify": "^1.6.5",
  "tailwindcss": "^3.1.7",
  "vue-class-component": "^7.2.6",
  "vue-property-decorator": "^9.1.2"
},
"devDependencies": {
  "@babel/core": "^7.18.10",
  "@babel/preset-env": "^7.18.10",
  "@nativescript/android": "~8.7.0",
  "@nativescript/ios": "~8.7.0",
  "@nativescript/types": "~8.7.0",
  "@nativescript/webpack": "~5.0.18",
  "@rushstack/eslint-patch": "^1.10.1",
  "@types/node": "~20.11.19",
  "@typescript-eslint/eslint-plugin": "^7.0.1",
  "@typescript-eslint/parser": "^7.0.1",
  "@vue/cli-plugin-typescript": "^4.5.19",
  "@vue/eslint-config-prettier": "^9.0.0",
  "@vue/eslint-config-typescript": "^12.0.0",
  "babel-loader": "^8.3.0",
  "eslint-config-prettier": "^9.1.0",
  "eslint-plugin-prettier": "^5.1.3",
  "nativescript-vue-template-compiler": "~2.9.0",
  "prettier": "^3.2.5",
  "sass": "^1.49.9",
  "typescript": "~5.4.0",
  "vue": "^2.6.12",
  "vue-loader": "^15.9.3"
}

Please accept these terms

Activity

  1. added and removed
    bug-pending-triageReported bug, pending triage to confirm.
    on Apr 12, 2024
  2. rigor789 commented on Apr 12, 2024

    @rigor789
    Member

    Thanks for reporting, we are aware as @NathanWalker ran into it not too long ago as well. I believe he has a fix locally, so I'll work with him to release a fix soon.

    (We'll soon merge the devtools package PR #10484 to main to make it easier to keep track of changes.)

  3. Accessionteasing commented on Oct 17, 2025

    @Accessionteasing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions