NativeScript / NativeScript/android

Getting an Android build error on old legacy nativescript system

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

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

主要言語
C++
スター
563
フォーク
144
平均マージ
10時間 46分
マージ済み PR(30日)
14

説明

I've got a legacy app that needs to be maintained.

Here's the tns info

✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 8.5.3 and the latest available version is 8.8.2.
✔ Component tns-core-modules has 6.5.27 version and is up to date.
⚠ Update available for component @nativescript/ios. Your current version is 6.5.6 and the latest available version is 8.8.2.
⚠ Update available for component @nativescript/android. Your current version is 8.5.4 and the latest available version is 8.8.5.

When I do a tns build android, get the following error

Build file '/Users/mini/Projects/ccs-mobile/platforms/android/app/build.gradle' line: 586
A problem occurred configuring project ':app'.
Could not find net.gotev:uploadservice:3.4.2.
Required by:
    project :app

Command ./gradlew failed with exit code 1

Here's my build.gradle file with line 586

// Discover all jars and dynamically create tasks for the extraction of each of them
project.ext.allJars = []
allprojects {
    afterEvaluate { project ->
        def buildType = project.selectedBuildType
        def jars = []
        def artifactType = Attribute.of('artifactType', String)
        android.applicationVariants.all { variant ->
            if (variant.buildType.name == buildType) {
                variant.getCompileClasspath().each { fileDependency ->         <<<<<<<< line 586
                    processJar(fileDependency, jars)
                }
            }
        }
    }
}

This is legacy app and would just like to build it without changes - I didn't make any changes since last successful build which was about 6 months ago. Help appreciated!

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

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

はじめの一歩

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

調査の方向性

まず、platforms/android/app/build.gradle の586行目で報告されている依存関係の失敗と、tns info に表示されるバージョンを確認します。legacy アプリの構成で tns build android を再実行して失敗を確認し、不足している依存関係 net.gotev:uploadservice:3.4.2 を追跡します。変更していない legacy アプリの Android ビルドが完了すれば完了です。

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

評価

技術スタック
android
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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