rcj6056 最近的时间轴更新
rcj6056

rcj6056

V2EX 第 360367 号会员,加入于 2018-11-02 10:53:51 +08:00
android studio 新建项目编译报错
Android  •  rcj6056  •  6 天前  •  最后回复来自 lisongeee
34
成都长城外包有哪些稍微好点的外包公司
程序员  •  rcj6056  •  52 天前  •  最后回复来自 bzj
1
安卓开发转 C++ 太多东西不明白 有偿求助
外包  •  rcj6056  •  147 天前  •  最后回复来自 cxy2003chuck
14
华子 od D3 21.5
职场话题  •  rcj6056  •  325 天前  •  最后回复来自 rcj6056
6
leetcode 415 没全部 ac :(
职场话题  •  rcj6056  •  335 天前  •  最后回复来自 rcj6056
11
OD 面试
职场话题  •  rcj6056  •  150 天前  •  最后回复来自 asche910
32
有偿-微信小程序抢票-高新活动场地预定
外包  •  rcj6056  •  344 天前  •  最后回复来自 rcj6056
19
已签字 last day 1.31
职场话题  •  rcj6056  •  2024-01-25 11:01:06 AM  •  最后回复来自 rcj6056
9
[有偿] 原生 app 开发即时通讯 关于 websocket 长链接的问题
WebSocket  •  rcj6056  •  2023-10-28 00:22:37 AM  •  最后回复来自 hez2010
20
rcj6056 最近回复了
6 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@lisongeee 公司电脑不方便上传到 github 吧。。。
6 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@1una0bserver linux 版新建项目是啥意思 你用的 mac 么
还有我怎么确定是不是网的问题呢 公司的项目代码也是能正常运行的
代理的话 在设置里面的 http 没有配置任何代理
6 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@1una0bserver 没有手工建哦。。
我在描述下我的环境情况吧。。

公司项目 gradle 版本是 7.5.1 也能正常运行

我新安装的 as 的版本是 Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1
直接新建 project 直接一路默认点击确认
项目 build.gradle.kts
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
}
gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

libs.versions.toml
[versions]
agp = "8.8.1"
kotlin = "1.9.24"
coreKtx = "1.15.0"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
appcompat = "1.7.0"
material = "1.12.0"
activity = "1.10.0"
constraintlayout = "2.2.0"

其他信息不知道还有啥问题

我猜想也是 vpn 问题 但是公司 Google 也能正常访问

我自己家里的环境是好的 没问题 很顺畅新建项目跟运行
6 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@TArysiyehua 我看下载进度是可以的应该是吧最新的 gradle 包下下来的了的
奇怪的是公司项目的 7.5.1 的版本 gradle 都能正常跑
我新建项目就不行 奇怪在这里
新建版本 guadle 是 8.10.2 的版本
6 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@houshanren 试了 不是。。
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@HojiOShi 还是失败 @sankemao 用哪个版本的比较合适 目前
Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1
Build #AI-242.23726.103.2422.13016713, built on February 6, 2025
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@HojiOShi 我删除了.gradle 目录 重新下了 还是老问题报错
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@murmurkerman 网络没问题 设置里面 http 里面 Google.com 百度.com 都能 connection successful 的
我刚按照你的插件都改了 还是不行。。。一样的报错

Plugin [id: 'com.android.application', version: '8.8.1', apply: false] was not found in any of the following sources:

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@tanranran google 都能访问的 公司的项目是可以运行的 新建的项目不行 很奇怪
在删除.gradle 目录 重新试
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@Ryinn 具体降低到多少 agp 多少 gradle 多少比较合适
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5853 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 06:22 · PVG 14:22 · LAX 22:22 · JFK 01:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.