Open vallemar opened 1 year ago
I just ran into the same issue after updating my CLI to 8.6.1 and android core to "@nativescript/android": "8.6.2" for a plugin I've been working on. I'm guessing a copy rule broke somewhere in these updates and the jar file is no longer copied to platforms/android/build-tools/dts-generator.jar. I ended up searching for the jar fil, copied it into that folder before running the typings command and it completed successfully.
@drangelod @vallemar which file did you copy into that folder? I've searched for dts-generator.jar
and there's nothing - or do you mean to copy the dependency's jar file into that folder? In such case should it be renamed into dts-generator.jar
?
Tried doing that (copy+rename) but then running ns typings ...
results in
no main manifest attribute, in /Users/mac-user/code-temp/sample-app-vue3/platforms/android/build-tools/dts-generator.jar
Ok, this helped:
git clone https://github.com/NativeScript/android-dts-generator
cd android-dts-generator/dts-generator
./gradlew jar
cp build/libs/dts-generator.jar ../../../<YOUR_PROJECT_PATH>/platforms/android/build-tools/dts-generator.jar
Then, run ns typings android --jar <YOUR_JAR>
@drangelod your previous comment helped, thanks :)
Thanks everyone, especially @vpiskunov . This helped. Would be great if generating typings would work again out of the box.
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
I have looked inside the folder and the
dts-generator.jar
file does not existReproduction
No response
Relevant log output (if applicable)
No response
Environment
Dependencies
Please accept these terms