20250103在Ubuntu20.04.5的Android Studio 2024.2.1.12中跑通Hello World
2025/1/3 14:06
百度:android studio helloworld
android studio hello world
kotlin helloword
kotlin 串口
no run configurations added
android studio no run configurations added
1、需要更换gradle的源,不然肯定会编译报错的。
2、需要修改相关的配置源。或者想办法上外网。
Z:\AndroidStudioProjects\MyApplication\gradle\wrapper\gradle-wrapper.properties
#Thu Jan 02 17:37:42 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.aliyun.com/macports/distfiles/gradle/gradle-8.9-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
修改为:
#Fri Jan 03 09:16:24 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.9-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Z:\AndroidStudioProjects\MyApplication\settings.gradle.kts
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "MyApplication"
include(":app")
修改为:
pluginManagement {
repositories {
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/google") }
maven { url = uri("https://jitpack.io") }
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/google") }
maven { url = uri("https://jitpack.io") }
google()
mavenCentral()
}
}
rootProject.name = "My Application"
include(":app")
https://blog.csdn.net/WeiHao0240/article/details/141564065
Android Studio 2024最新版Hello World
第2章 快速开始:HelloWorld 《Kotlin 极简教程》
https://blog.csdn.net/universsky2015/article/details/108669147
《Kotlin 极简教程 》第2章 快速开始:HelloWorld
https://jingyan.baidu.com/article/6525d4b180d542ac7c2e9447.html
Kotlin入门教程-1.2、编写第一句程序HelloWorld
https://blog.csdn.net/m0_67830223/article/details/140501450
【移动应用开发】创建Hello World应用
https://blog.csdn.net/qq_74706597/article/details/143842946
有关Android Studio的安装与配置并实现helloworld(有jdk的安装与配置)(保姆级教程)
https://www.cnblogs.com/GiveCookies/p/18476200
windows安装Android studio并运行显示"hello world"
这里推荐清华的镜像, 其他的镜像可在网上查找
https://blog.csdn.net/github_74110837/article/details/143092695
Android Studio 2024版本新建项目换源教程
ubuntu中的firefox下的参考资料:
https://blog.csdn.net/WeiHao0240/article/details/141564065
Android Studio 2024最新版Hello World
https://blog.csdn.net/qq_17470165/article/details/80686353
【Android Kotlin】Android Studio创建一个简单的Kotlin应用
https://blog.csdn.net/qq_44512238/article/details/139828163
【Android】不能下载Gradle的解决方法Could not install Gradle distribution from 'https:services.gradle.orgdistrib
https://www.cnblogs.com/IDM2025/p/18401984
解决Android Studio不能下载Gradle的教程Could not install Gradle distribution from 'https:services.gradle.orgdistrib
https://blog.csdn.net/qq_42257666/article/details/117398185
ERROR: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle
android studio hello world
https://cloud.tencent.com/developer/information/如何在Android Studio中制作JNI hello world程序?
如何在Android Studio中制作JNI hello world程序?
Android Studio安装和使用教程(全文图解)
ubuntu android studio gradle-8.9-all.zip yuantou
Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.9-bin.zip'.
ould not install Gradle distribution from 'https://services.gradle.org/dist
Unable to find Gradle tasks to build: []. Build mode: REBUILD.
https://blog.csdn.net/weixin_47617631/article/details/143760018
androidstudio入门到放弃配置
https://mirrors.cloud.tencent.com/gradle//gradle-8.9-all.zip
https://blog.csdn.net/qq_42257666/article/details/117398185
ERROR: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle
https://www.cnblogs.com/IDM2025/p/18401984
解决Android Studio不能下载Gradle的教程Could not install Gradle distribution from 'https:services.gradle.orgdistrib
https://blog.csdn.net/qq_44512238/article/details/139828163
【Android】不能下载Gradle的解决方法Could not install Gradle distribution from 'https:services.gradle.orgdistrib
https://blog.csdn.net/rcAndroid/article/details/120717102
Unable to find gradle task to build
https://www.cnblogs.com/wanglongjiang/p/17403741.html
Unable to find Gradle tasks to build: [:]. Build mode: ASSEMBLE. Tests: None
https://wenku.csdn.net/answer/7ad82f228a644c5894e56f39d190e6e5
Unable to find Gradle tasks to build [ ]. Build mode ASSEMBLE. Tests None - CSDN文库.html
https://blog.51cto.com/u_16213299/7126853
Unable to find Gradle tasks to build: [:app]. Build mode: COMPILE_JAVA. Test
https://blog.csdn.net/Frankfan666/article/details/143225400
Android:Unable to find Gradle tasks to build: [:app]. Build mode: ASSEMBLE.
Download https://maven.aliyun.com/repository/gradle-plugin/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom, took 123 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom, took 146 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/apache/httpcomponents/httpcomponents-parent/10/httpcomponents-parent-10.pom, took 345 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/apache/apache/18/apache-18.pom, took 130 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/jetbrains/annotations/13.0/annotations-13.0.pom, took 122 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.pom, took 120 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/auto/auto-parent/6/auto-parent-6.pom, took 124 ms
Download https://maven.aliyun.com/repository/gradle-plugin/commons-codec/commons-codec/1.10/commons-codec-1.10.pom, took 150 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.pom, took 123 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.pom, took 235 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/guava-parent/26.0-android/guava-parent-26.0-android.pom, took 117 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/apache/commons/commons-parent/42/commons-parent-42.pom, took 151 ms
Download https://maven.aliyun.com/repository/gradle-plugin/javax/inject/javax.inject/1/javax.inject-1.jar, took 418 ms
Download https://maven.aliyun.com/repository/gradle-plugin/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar, took 571 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/auto/value/auto-value-annotations/1.6.2/auto-value-annotations-1.6.2.jar, took 196 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar, took 127 ms
> Task :prepareKotlinBuildScriptModel UP-TO-DATE
Download https://maven.aliyun.com/repository/gradle-plugin/javax/inject/javax.inject/1/javax.inject-1-sources.jar, took 119 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/auto/value/auto-value-annotations/1.6.2/auto-value-annotations-1.6.2-sources.jar, took 172 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/listenablefuture/1.0/listenablefuture-1.0.pom, took 129 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/squareup/javawriter/2.1.1/javawriter-2.1.1.pom, took 161 ms
Download https://maven.aliyun.com/repository/gradle-plugin/org/hamcrest/hamcrest-parent/1.3/hamcrest-parent-1.3.pom, took 354 ms
Download https://maven.aliyun.com/repository/gradle-plugin/com/google/guava/listenablefuture/1.0/listenablefuture-1.0.jar, took 283 ms
BUILD SUCCESSFUL in 4m 57s