V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  rcj6056  ›  全部回复第 1 页 / 共 5 页
回复总数  88
1  2  3  4  5  
7 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@lisongeee 公司电脑不方便上传到 github 吧。。。
8 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@1una0bserver linux 版新建项目是啥意思 你用的 mac 么
还有我怎么确定是不是网的问题呢 公司的项目代码也是能正常运行的
代理的话 在设置里面的 http 没有配置任何代理
8 天前
回复了 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 也能正常访问

我自己家里的环境是好的 没问题 很顺畅新建项目跟运行
8 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@TArysiyehua 我看下载进度是可以的应该是吧最新的 gradle 包下下来的了的
奇怪的是公司项目的 7.5.1 的版本 gradle 都能正常跑
我新建项目就不行 奇怪在这里
新建版本 guadle 是 8.10.2 的版本
8 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@houshanren 试了 不是。。
9 天前
回复了 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
9 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@HojiOShi 我删除了.gradle 目录 重新下了 还是老问题报错
9 天前
回复了 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.
9 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@tanranran google 都能访问的 公司的项目是可以运行的 新建的项目不行 很奇怪
在删除.gradle 目录 重新试
9 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@Ryinn 具体降低到多少 agp 多少 gradle 多少比较合适
9 天前
回复了 rcj6056 创建的主题 Android android studio 新建项目编译报错
@HojiOShi 我在 C:\Users\用户名\.gradle 目录下没找到 gradle.properties
文件夹已经显示了隐藏文件了 为啥没得。。 用 everything 搜了下也没有。。
9 天前
回复了 colorbeta 创建的主题 Android 现在入手 Android 的平板能长期使用么
6 年前的 ipad 还是跟新的一样 除了电池差点
153 天前
回复了 rcj6056 创建的主题 职场话题 OD 面试
@asche910 太忙了 ,,,
前阵子刚走了转正流程
事情确实多
318 天前
回复了 rcj6056 创建的主题 职场话题 OD 面试
@zhimayan
已经拿了 offer 了 准备入职
327 天前
回复了 rcj6056 创建的主题 职场话题 华子 od D3 21.5
@FJIN
我是 7 号下午给说的进入审批
今天已经一周了
等下周吧 有兴趣可以加我下 v
base64
MTczNTMxNzkwNTE=
1  2  3  4  5  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5523 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 03:30 · PVG 11:30 · LAX 19:30 · JFK 22:30
Developed with CodeLauncher
♥ Do have faith in what you're doing.