Giter Site home page Giter Site logo

Comments (4)

drangelod avatar drangelod commented on June 6, 2024 1

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.

from android.

vpiskunov avatar vpiskunov commented on June 6, 2024 1

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 :)

from android.

vpiskunov avatar vpiskunov commented on June 6, 2024

@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

from android.

MrSnoozles avatar MrSnoozles commented on June 6, 2024

Thanks everyone, especially @vpiskunov . This helped. Would be great if generating typings would work again out of the box.

from android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.