20250103在Ubuntu20.04.5的Android Studio 2024.2.1.12中跑通Hello World

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?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522f0b56d2343808885d68f86545ea44725%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D\&request_id=f0b56d2343808885d68f86545ea44725\&biz_id=0\&utm_medium=distribute.pc_search_result.none-task-blog-2\~all\~first_rank_ecpm_v1\~rank_v31_ecpm-1-141564065-null-null.142\^v100\^pc_search_result_base2\&utm_term=Android studio2024 最新版 hello world\&spm=1018.2226.3001.4187

https://blog.csdn.net/WeiHao0240/article/details/141564065

Android Studio 2024最新版Hello World

https://blog.csdn.net/weixin_33709609/article/details/92507468?utm_medium=distribute.pc_relevant.none-task-blog-2\~default\~baidujs_baidulandingword\~default-0-92507468-blog-133556908.235\^v43\^pc_blog_bottom_relevance_base7\&spm=1001.2101.3001.4242.1\&utm_relevant_index=3

第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程序?

https://gitcode.csdn.net/662760cec46af92642763710.html?dp_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MjQwNTYwLCJleHAiOjE3MzYxNjYxNDcsImlhdCI6MTczNTU2MTM0NywidXNlcm5hbWUiOiJ3YjQ5MTYifQ.JPTaol3eBK8hBCtlfiGdxqxPK1Hjk1mAjF1HJp9f6qE\&spm=1001.2101.3001.6650.5\&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-5-133266830-blog-141564065.235^v43^pc_blog_bottom_relevance_base7\&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-5-133266830-blog-141564065.235^v43^pc_blog_bottom_relevance_base7\&utm_relevant_index=10

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

相关推荐
南棱笑笑生20 天前
20241217使用M6000显卡在WIN10下跑whisper来识别中英文字幕
杂质
南棱笑笑生21 天前
20241217让荣品的PRO-RK3566开发板在Android13下使得GC2093摄像头使用1080p分辨率录像
杂质
南棱笑笑生2 个月前
20241116解决在WIN11和ubuntu20.04通过samba共享时出现局域网千兆带宽拉满的情况
杂质
南棱笑笑生2 个月前
20241107给荣品PRO-RK3566开发板刷Rockchip原厂的Android13并配置永不休眠
杂质
南棱笑笑生2 个月前
20241105编译荣品的Android13并给荣品PRO-RK3566开发板刷机
杂质
南棱笑笑生2 个月前
20241102在荣品PRO-RK3566开发板使用荣品预编译的buildroot通过iperf2测试AP6256的WIFI网速
杂质
南棱笑笑生2 个月前
20241028在荣品PRO-RK3566开发板的预置Android13下用iperf3测试AP6256的WIFI网速
杂质
南棱笑笑生2 个月前
20241029在荣品PRO-RK3566开发板的预置Android13下用iperf3测试以太网eth0的网速【RTL8211F-CG】
杂质
南棱笑笑生3 个月前
20241021给荣品RD-RK3588-AHD开发板刷荣品预编译的Android12之后使用GPStest测试板载GPS
杂质