NativeScript / NativeScript/plugins

Build failure for latest @nativescript/background-http v6.0.1

オープン
#567 コメント 4 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

When updating to the latest version of background-http I am receiving the following build error:

D:\code\SafeSite\mobile\code\apps\nativescript-safesite\platforms\android\app\src\main\java\com\tns\gen\net\gotev\uploadservice\observer\request\RequestObserverDelegate.java:10: error: cannot access RequestObserverDelegate
        net.gotev.uploadservice.observer.request.RequestObserverDelegate {
                                                ^
  bad class file: C:\Users\joshc\.gradle\caches\transforms-3\6c21abdd05e63a95e1d98494741b42e0\transformed\jetified-uploadservice-4.9.2-api.jar(/net/gotev/uploadservice/observer/request/RequestObserverDelegate.class)
    class file has wrong version 61.0, should be 55.0       
    Please remove or make sure it appears in the correct subdirectory of the classpath.
D:\code\SafeSite\mobile\code\apps\nativescript-safesite\platforms\android\app\src\main\java\com\tns\gen\net\gotev\uploadservice\observer\request\RequestObserverDelegate.java:17: error: cannot access UploadInfo
      android.content.Context param_0, net.gotev.uploadservice.data.UploadInfo param_1) {
                                                            
       ^
  bad class file: C:\Users\joshc\.gradle\caches\transforms-3\6c21abdd05e63a95e1d98494741b42e0\transformed\jetified-uploadservice-4.9.2-api.jar(/net/gotev/uploadservice/data/UploadInfo.class)
    class file has wrong version 61.0, should be 55.0       
    Please remove or make sure it appears in the correct subdirectory of the classpath.
D:\code\SafeSite\mobile\code\apps\nativescript-safesite\platforms\android\app\src\main\java\com\tns\gen\net\gotev\uploadservice\observer\request\RequestObserverDelegate.java:27: error: cannot access ServerResponse
      net.gotev.uploadservice.network.ServerResponse param_2) {
                                     ^
  bad class file: C:\Users\joshc\.gradle\caches\transforms-3\6c21abdd05e63a95e1d98494741b42e0\transformed\jetified-uploadservice-4.9.2-api.jar(/net/gotev/uploadservice/network/ServerResponse.class)
    class file has wrong version 61.0, should be 55.0       
    Please remove or make sure it appears in the correct subdirectory of the classpath.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

I can work around this by forcing the uploadServiceVersion to 4.7.0 in before-plugins.gradle:

uploadServiceVersion = "4.7.0"

I am using latest NativeScript v8.6.5 on an Angular project.

To trigger the error, simple use the service in a project created by the latest version of NativeScript.

Thanks!

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

NativeScript 8.6.5 Angular プロジェクトで @nativescript/background-http v6.0.1 の失敗を再現し、uploadServiceVersion 設定を含めて before-plugins.gradle を調査する。失敗している uploadservice 4.9.2 依存関係と、報告されている 4.7.0 の回避策を比較する。最新のプラグインが class-file version エラーなしでビルドできれば完了とする。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, typescript
領域
build-system, mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。