Initial commit: Android题库APP - Jetpack Compose + Retrofit
Some checks failed
Build and Release APK / build (push) Has been cancelled
Build and Release APK / release (push) Has been cancelled

This commit is contained in:
爱喝水的木子
2026-04-01 18:32:18 +08:00
commit 98fc3ff879
43 changed files with 3116 additions and 0 deletions

31
fix_gradle_wrapper.ps1 Normal file
View File

@@ -0,0 +1,31 @@
# Fix Gradle Wrapper - Download gradle-wrapper.jar
Write-Host "Starting Gradle Wrapper fix..." -ForegroundColor Green
$wrapperJarPath = ".\gradle\wrapper\gradle-wrapper.jar"
# Remove old file if exists
if (Test-Path $wrapperJarPath) {
Write-Host "Removing old gradle-wrapper.jar..." -ForegroundColor Yellow
Remove-Item -Path $wrapperJarPath -Force
}
# Download new file
Write-Host "Downloading gradle-wrapper.jar..." -ForegroundColor Yellow
try {
Invoke-WebRequest -Uri "https://github.com/gradle/gradle/raw/v8.13.0/gradle/wrapper/gradle-wrapper.jar" -OutFile $wrapperJarPath -UseBasicParsing
if (Test-Path $wrapperJarPath) {
Write-Host "SUCCESS! Download completed." -ForegroundColor Green
Write-Host "You can now run: .\gradlew.bat assembleRelease --no-daemon" -ForegroundColor Cyan
} else {
Write-Host "FAILED! File not found after download." -ForegroundColor Red
}
} catch {
Write-Host "Download failed: $_" -ForegroundColor Red
Write-Host "`nPlease download manually:" -ForegroundColor Yellow
Write-Host "1. Visit: https://github.com/gradle/gradle/tree/v8.13.0/gradle/wrapper" -ForegroundColor Cyan
Write-Host "2. Save gradle-wrapper.jar to: $($PWD.Path)\gradle\wrapper\" -ForegroundColor Cyan
}
Write-Host "`nPress any key to exit..." -ForegroundColor Gray
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")