NativeScript / NativeScript/android
Getting an Android build error on old legacy nativescript system
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 563
- Forks
- 144
- Ø Merge
- 10 Std. 46 Min.
- Gemergte PRs (30 T.)
- 14
Beschreibung
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!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Überprüfung des gemeldeten Dependency-Fehlers in Zeile 586 von platforms/android/app/build.gradle und der von tns info angezeigten Versionen. Führe tns build android mit der Legacy-App-Konfiguration erneut aus, um den Fehler zu bestätigen und die fehlende Dependency net.gotev:uploadservice:3.4.2 nachzuverfolgen. Als abgeschlossen gilt die Aufgabe, wenn die unveränderte Legacy-App ihren Android-Build erfolgreich abschließt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100