triniwiz / triniwiz/nativescript-plugins

Socketio crashes gradle build

Open
#207 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
87
Forks
57
Avg merge
1h 36m
Merged PRs (30d)
4

Description

Steps to reproduce:

  • create new app
  • ns plugin add @triniwiz/nativescript-socketio
  • ns debug android
Updating runtime package.json with configuration values...
Project successfully prepared (android)
Building project...
Gradle build...
         + applying user-defined configuration from /Users/adamatri/Project/notify-me/App_Resources/Android/before-plugins.gradle
         + applying user-defined configuration from /Users/adamatri/Project/notify-me/App_Resources/Android/before-plugins.gradle
         + setting applicationId
         + applying user-defined configuration from /Users/adamatri/Project/notify-me/App_Resources/Android/app.gradle
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Users/adamatri/Project/notify-me/node_modules/@nativescript/core/platforms/android/core.aar
         + adding aar plugin dependency: /Users/adamatri/Project/notify-me/node_modules/@nativescript/core/platforms/android/widgets-release.aar
         + adding aar plugin dependency: /Users/adamatri/Project/notify-me/node_modules/@nativescript/core/platforms/android/winter_cg-release.aar
         + adding aar plugin dependency: /Users/adamatri/Project/notify-me/node_modules/@triniwiz/nativescript-socketio/platforms/android/fancylogger-release.aar

Build file '/Users/adamatri/Project/notify-me/platforms/android/app/build.gradle' line: 574
A problem occurred configuring project ':app'.
invalid code lengths set

Unable to apply changes on device: ce071717c4a3b83b0d7e. Error is: Command ./gradlew failed with exit code 1.

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 with the Android build output and inspect platforms/android/app/build.gradle around line 574 after adding @triniwiz/nativescript-socketio, including its fancylogger-release.aar dependency. Run ns debug android on a new app to reproduce the “invalid code lengths set” failure; done means the Gradle build completes successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.