Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

missing android-dts-generator.jar - ns typings android not working

未關閉
#1,802 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
android, java
領域
mobile-dev

研究方向

首先在 Android 專案準備期間追蹤 ns typings android --aar 流程,並檢查應如何提供 platforms/android/build-tools/dts-generator.jar。確認 jar 可用,且該命令可以從提供的 .aar 檔案產生型別定義,而不會出現回報的存取錯誤。

由索引模型根據 Issue 內容生成。

描述

bug
Issue Description

I'm trying to make the types: ns typings android --aar ./colorpickerview-2.3.0.aar

When I try this I have the following output

vallemar@macbook-pro-de-juan nativescript-reordering % ns typings android --aar ./colorpickerview-2.3.0.aar
No platforms folder found, preparing project now...
Preparing project...
assets by path sources/ 17.7 MiB
   assets by path fonts/*.ttf 17.6 MiB
     asset fonts/MaterialSymbolsRounded.ttf 10.1 MiB [compared for emit] [from: src/fonts/MaterialSymbolsRounded.ttf] [copied]
     asset fonts/MaterialSymbolsOutlined.ttf 7.39 MiB [compared for emit] [from: src/fonts/MaterialSymbolsOutlined.ttf] [copied]
     asset fonts/UberMove-Light.ttf 53.7 KiB [compared for emit] [from: src/fonts/UberMove-Light.ttf] [copied]
   assets by path fonts/*.otf 111 KiB
     asset fonts/UberMoveBold.otf 56 KiB [compared for emit] [from: src/fonts/UberMoveBold.otf] [copied]
     asset fonts/UberMoveMedium.otf 55.2 KiB [compared for emit] [from: src/fonts/UberMoveMedium.otf] [copied]
assets by path *.js 10.2 MiB
   asset vendor.js 8.62 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)
   asset bundle.js 1.61 MiB [compared for emit] (name: bundle)
   asset runtime.js 12.8 KiB [compared for emit] (name: runtime)
asset assets/lottie/confetti.json 29.7 KiB [compared for emit] [from: src/assets/lottie/confetti.json] [copied]
Entrypoint bundle 10.2 MiB = runtime.js 12.8 KiB vendor.js 8.62 MiB bundle.js 1.61 MiB
orphan modules 23.1 KiB [orphan] 15 modules
runtime modules 2.72 KiB 8 modules
modules by path ./node_modules/ 3.18 MiB
   javascript modules 2.91 MiB 430 modules
   json modules 273 KiB
     modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules
     modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules
modules by path ./src/ 476 KiB
   modules by path ./src/components/*.vue 53.8 KiB 45 modules
   modules by path ./src/views/*.vue 38.1 KiB 10 modules
   modules by path ./src/*.ts 13.8 KiB 6 modules
   modules by path ./src/utils/*.ts 347 KiB 3 modules
   + 4 modules
external "~/package.json" 42 bytes [optional] [built] [code generated]
webpack 5.89.0 compiled successfully in 2344 ms
Webpack compilation complete.
Updating runtime package.json with configuration values...
Project successfully prepared (android)
Error: Unable to access jarfile /Users/vallemar/workspaces/test/nativescript-reordering/platforms/android/build-tools/dts-generator.jar

I have looked inside the folder and the dts-generator.jar file does not exist

Reproduction

No response

Relevant log output (if applicable)

No response

Environment
OS: macOS 14.1
CPU: (12) arm64 Apple M2 Max
Shell: /bin/zsh
node: 18.14.0
npm: 9.3.1
nativescript: 8.6.1

# android
java: 11.0.18
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 15.0/15A240d
cocoapods: 1.13.0
python: 3.11.5
python3: 3.11.5
ruby: 2.7.7
platforms: 
  - DriverKit 23.0
  - iOS 17.0
  - macOS 14.0
  - tvOS 17.0
  - watchOS 10.0
Dependencies
"dependencies": {
  "@akylas/nativescript": "^8.5.10",
  "@nativescript-community/ui-collectionview": "^5.3.3",
  "@nativescript-community/ui-collectionview-swipemenu": "^5.3.3",
  "@nativescript-community/ui-lottie": "^5.0.6",
  "@nativescript-community/ui-material-bottomsheet": "^7.2.4",
  "@nativescript-community/ui-material-tabs": "^7.2.4",
  "@nativescript-community/ui-persistent-bottomsheet": "^0.0.29",
  "@nativescript-community/ui-popover": "^0.1.9",
  "@nativescript-use/vue": "^0.0.26",
  "@nativescript/stackblitz": "^0.0.8",
  "dayjs": "^1.11.10",
  "nativescript-vue": "3.0.0-beta.10",
  "patch-package": "^8.0.0",
  "pinia": "^2.1.7"
},
"devDependencies": {
  "@nativescript/android": "8.6.2",
  "@nativescript/core": "^8.6.1",
  "@nativescript/ios": "8.6.1",
  "@nativescript/preview-cli": "1.0.5",
  "@nativescript/tailwind": "^2.0.1",
  "@nativescript/types": "~8.5.0",
  "@nativescript/webpack": "~5.0.0",
  "@types/node": "~17.0.21",
  "tailwindcss": "^3.1.8",
  "typescript": "^5.2.2"
}
Please accept these terms
主要語言
C++
星號
563
分支
144
平均合併
10 小時 45 分鐘
30 天內合併 PR
11

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NativeScript/android 的其他 Issue

查看 NativeScript/android 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。