当前位置: 首页 > article >正文

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%20studio2024%20%E6%9C%80%E6%96%B0%E7%89%88%20hello%20world&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/%E5%A6%82%E4%BD%95%E5%9C%A8Android%20Studio%E4%B8%AD%E5%88%B6%E4%BD%9CJNI%20hello%20world%E7%A8%8B%E5%BA%8F%EF%BC%9F
如何在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%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-133266830-blog-141564065.235%5Ev43%5Epc_blog_bottom_relevance_base7&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-5-133266830-blog-141564065.235%5Ev43%5Epc_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


http://www.kler.cn/a/470149.html

相关文章:

  • 基于 GEE Sentinel-1 数据集提取水体
  • 《Mcal》--MCU模块
  • 【C语言程序设计——选择结构程序设计】求阶跃函数的值(头歌实践教学平台习题)【合集】
  • 【iOS Swift Moya 最新请求网络框架封装通用】
  • nodeJS下npm和yarn的关系和区别详解
  • nodejs实现https://localhost在window系统自签名99年+授信
  • 了解什么是JavaEE(什么是JavaEE)
  • PHP语言的并发编程
  • 一个使用 Nginx 进行反向代理和负载均衡的示例配置
  • gozero实现对接开放平台分贝通中新建费用报销的sdk设计与解决方案
  • CAD随机球体插件专业版V1.3版本更新
  • 大数据组件(三)快速入门实时计算平台Dinky
  • XHR readyState:深入了解XMLHttpRequest的状态管理
  • 《Vue进阶教程》第三十五课:自动脱ref
  • C语言基础:指针(常量指针和指针常量)
  • js -音频变音(听不出说话的人是谁)
  • Flink系列知识讲解之:网络监控、指标与反压
  • 计算机的错误计算(二百零三)
  • 2025年最新 Tensorflow paddlepaddle与CUDA 、Python、cuDNN的版本对应表 一一对应关系,torch和CUDA的对应表
  • 科普CMOS传感器的工作原理及特点
  • windows C#-如何在派生类中引发基类事件
  • SPringMVC(2)——SpringMVC请求
  • 通过 oh-my-posh posh-git 优化PowerShell
  • 『SQLite』详解运算符
  • Lua语言的字符串处理
  • Node.js 中 http 模块的深度剖析与实战应用