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

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

相关文章:

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、…...

Hack The Box-Starting Point系列Three

答案 How many TCP ports are open?(靶机开了几个TCP端口) 2What is the domain of the email address provided in the “Contact” section of the website?(网站的“CONTACT”部分提供的电子邮件地址的域是什么?&#xff09…...

【Python其他生成随机字符串的方法】

在Python中,除了之前提到的方法外,确实还存在其他几种生成随机字符串的途径。以下是对这些方法的详细归纳: 方法一:使用random.randint结合ASCII码生成 你可以利用random.randint函数生成指定范围内的随机整数,这些整…...

redis7基础篇2 redis的主从模式1

目录 一 主从模式 1.1 主从复制的作用 1.2 配置常用命令 1.3 主从复制常见问题 1.4 主从复制的缺点 1.5 redis主从复制原理 二 redis主从复制的搭建流程 2.1 注意事项 2.2 redis的主从复制架构图 2.3 以6379.conf配置文件配置为例 2.4 以6380.conf配置文件配置为例 …...

Springboot - Web

Spring Boot 是一个用于简化 Spring 应用程序配置和部署的框架。它提供了一种快速开发的方式,通过默认配置、自动化配置等特性,使得开发者能够更快捷地构建和部署基于 Spring 的应用。 Spring Boot Web 是 Spring Boot 的一个子模块,它专注于…...

【C】​动态内存管理

所谓动态内存管理,就是使得内存可以动态开辟,想使用的时候就开辟空间,使用完之后可以销毁,将内存的使用权还给操作系统,那么动态开辟内存有什么用呢? 假设有这么一种情况,你在一家公司中工作&am…...

lec5-传输层原理与技术

lec5-传输层原理与技术 1. 传输层概述 1.1. 关键职责 flow control,流量控制reliability,可靠性 1.2. TCP与UDP对比 面向连接 / 不能连接对数据校验 / 不校验数据丢失重传 / 不会重传有确认机制 / 没有确认滑动窗口流量控制 / 不会流量控制 1.3. 关…...

【C语言】_指针运算

目录 1. 指针-整数 2. 指针-指针 2.1 指针-指针含义 2.2 指针-指针运算应用:实现my_strlen函数 3. 指针的关系运算(大小比较) 1. 指针-整数 联系关于指针变量类型关于指针类型和指针-整数相关知识: 原文链接如下&#xff1…...

“AI智慧教学系统:开启个性化教育新时代

大家好,我是老王,一个在产品圈摸爬滚打多年的资深产品经理。今天,我想和大家聊聊一个最近特别火的概念——AI智慧教学系统。这东西听起来好像很高大上,但其实和我们每个人都息息相关,因为它关系到我们下一代的教育。 一…...

商用车自动驾驶,迎来大规模量产「临界点」?

商用车自动驾驶,正迎来新的行业拐点。 今年初,交通部公开发布AEB系统运营车辆标配征求意见稿,首次将法规限制条件全面放开,有望推动商用车AEB全面标配,为开放场景的商用车智能驾驶市场加了一把火。 另外,…...

CSS 学习之正确看待 CSS 世界里的 margin 合并

一、什么是 margin 合并 块级元素的上外边距(margin-top)与下外边距(margin-bottom)有时会合并为单个外边距,这样的现象称为“margin 合并”。从此定义上,我们可以捕获两点重要的信息。 块级元素,但不包括浮动和绝对定位元素,尽…...

杰发科技——使用ATCLinkTool解除读保护

0. 原因 在jlink供电电压不稳定的情况下,概率性出现读保护问题,量产时候可以通过离线烧录工具避免。代码中开了读保护,但是没有通过can/uart/lin/gpio控制等方式进行关闭,导致无法关闭读保护。杰发所有芯片都可以用本方式解除读保…...

uni-app深度解码:跨平台APP开发的核心引擎与创新实践

在当今数字化浪潮中,移动应用市场呈现出爆炸式增长。为了满足不同用户群体在不同操作系统上的需求,跨平台 APP 开发成为众多开发者的首选策略。uni-app 作为一款领先的跨平台开发框架,以其独特的优势和创新的实践在众多同类产品中脱颖而出。它…...

unity团结云下载项目

今天开plastic scm发现它云服务好像停了哈,在hub里下载云端项目也不会出现在项目列表里,之前也有发邮件说让提前迁移到团结云。打开云仓库会弹这个,大概就是plastic scm无法解析域名地址吧 研究了一下团结云咋使,官方手册看半天也…...

Jmeter进阶篇(31)解决java.net.BindException: Address already in use: connect报错

📚前言 近期雪雪妹妹在使用Jmeter执行压测的时候,发现了一个非常让她头疼的问题,她使用20并发跑,正确率可以达到100%,但是一旦使用200并发,就会出现大量的报错,报错内容如下: java.net.BindException: Address already in use: connectat java.net.DualStackPlainSo…...

商米电子秤服务插件

概述 SunmiScaleUTS封装商米电子秤服务模块,支持商米旗下S2, S2CC, S2L CC等设备,设备应用于超市、菜市场、水果店等,用于测量商品的重量,帮助实现快捷、准确、公正的交易等一系列商业场景。 功能说明 SDK插件下载 一. 电子秤参数 型号:S2, S2CC, …...

华为ensp-BGP路由过滤

学习新思想,争做新青年,今天学习的是BGP路由过滤 实验目的: 掌握利用BGP路由属性AS_Path进行路由过滤的方法 掌握利用BGP路由属性Community进行路由过滤的方法 掌握利用BGP路由属性Next_Hop进行路由过滤的方法 实验内容: 本实…...

Sigrity System SI SerialLink模式进行Pcie3协议仿真分析操作指导-pcie3_client_single_post

Sigrity System SI SerialLink模式进行Pcie3协议仿真分析操作指导-pcie3_client_single_post Sigrity System SI SerialLink模式提供了10个协议合规性检查工具模板,用户可以将根据实际应用替换模板中的SPICE文件,然后进行协议仿真分析,同时软件还提供了目标结果的模板MASK以…...

Python提取目标Json键值:包含子嵌套列表和字典

目标:取json中所有的Name、Age字典 思路:递归处理字典中直接包含子字典的情况, import jsondef find_targ_dicts(data,key1,key2):result {}if isinstance(data, dict):if key1 in data and key2 in data: # 第一层字典中包含key1和key2re…...

分享6个对象数组去重的方法

大家好,关于对象数组去重的业务场景,想必大家都遇到过类似的需求吧,针对这样的需求,你是怎么做的呢。 下面我就先和大家讨论下基于对象的某个属性如何去重。 方法一:使用 .filter() 和 .findIndex() 相结合的方法 使…...

浅谈 React Hooks

React Hooks 是 React 16.8 引入的一组 API,用于在函数组件中使用 state 和其他 React 特性(例如生命周期方法、context 等)。Hooks 通过简洁的函数接口,解决了状态与 UI 的高度解耦,通过函数式编程范式实现更灵活 Rea…...

springboot 百货中心供应链管理系统小程序

一、前言 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也是备受用户的喜爱,百货中心供应链管理系统被用户普遍使用,为方…...

(十)学生端搭建

本次旨在将之前的已完成的部分功能进行拼装到学生端,同时完善学生端的构建。本次工作主要包括: 1.学生端整体界面布局 2.模拟考场与部分个人画像流程的串联 3.整体学生端逻辑 一、学生端 在主界面可以选择自己的用户角色 选择学生则进入学生登录界面…...

工程地质软件市场:发展现状、趋势与策略建议

一、引言 在工程建设领域,准确把握地质条件是确保项目顺利推进和安全运营的关键。工程地质软件作为处理、分析、模拟和展示工程地质数据的重要工具,正发挥着日益重要的作用。它凭借强大的数据处理能力、三维建模功能、空间分析工具和可视化展示手段&…...

12.找到字符串中所有字母异位词

🧠 题目解析 题目描述: 给定两个字符串 s 和 p,找出 s 中所有 p 的字母异位词的起始索引。 返回的答案以数组形式表示。 字母异位词定义: 若两个字符串包含的字符种类和出现次数完全相同,顺序无所谓,则互为…...

Spring Cloud Gateway 中自定义验证码接口返回 404 的排查与解决

Spring Cloud Gateway 中自定义验证码接口返回 404 的排查与解决 问题背景 在一个基于 Spring Cloud Gateway WebFlux 构建的微服务项目中,新增了一个本地验证码接口 /code,使用函数式路由(RouterFunction)和 Hutool 的 Circle…...

用机器学习破解新能源领域的“弃风”难题

音乐发烧友深有体会,玩音乐的本质就是玩电网。火电声音偏暖,水电偏冷,风电偏空旷。至于太阳能发的电,则略显朦胧和单薄。 不知你是否有感觉,近两年家里的音响声音越来越冷,听起来越来越单薄? —…...

JavaScript 数据类型详解

JavaScript 数据类型详解 JavaScript 数据类型分为 原始类型(Primitive) 和 对象类型(Object) 两大类,共 8 种(ES11): 一、原始类型(7种) 1. undefined 定…...

快刀集(1): 一刀斩断视频片头广告

一刀流:用一个简单脚本,秒杀视频片头广告,还你清爽观影体验。 1. 引子 作为一个爱生活、爱学习、爱收藏高清资源的老码农,平时写代码之余看看电影、补补片,是再正常不过的事。 电影嘛,要沉浸,…...

MySQL 8.0 事务全面讲解

以下是一个结合两次回答的 MySQL 8.0 事务全面讲解,涵盖了事务的核心概念、操作示例、失败回滚、隔离级别、事务性 DDL 和 XA 事务等内容,并修正了查看隔离级别的命令。 MySQL 8.0 事务全面讲解 一、事务的核心概念(ACID) 事务是…...