Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.17k stars 3.34k forks source link

tinker获取不到了 #556

Closed awdvhil9 closed 7 years ago

awdvhil9 commented 7 years ago

异常类型:编译异常

tinker版本:如:1.7.11

gradle版本:如:2.3.3

是否使用热更新SDK: 否

系统:Windows

堆栈/日志: Error:Failed to resolve: annotationProcessor Error:Failed to resolve: com.tencent.tinker:tinker-android-lib:1.7.11 Error:Failed to resolve: com.tencent.tinker:tinker-android-anno:1.7.11 获取不到,网络是正常的,用tinker-sample也获取不到,请问是什么问题?

awdvhil9 commented 7 years ago

今天刚发生的,之前是好的,只有tinker获取不到,其他的包都可以获取到

xiangqiuhan commented 7 years ago

我也发生了这个错误,所有接入tinker的项目都找不到

ibaoger commented 7 years ago

我查看了 jcenter 官网,发现已经没有了 http://jcenter.bintray.com/com/tencent/tinker/

guanyueyun commented 7 years ago

真的坑

shwenzhang commented 7 years ago

似乎是被jcenter下线了,这边需要我联系一下如何尽快恢复服务 image

typ0520 commented 7 years ago

加上 mavenLocal()

buildscript {
    repositories {
        mavenLocal()
    }
}

allprojects {
    repositories {
        mavenLocal()

    }
}

以1.7.9为例执行以下命令

git clone https://github.com/Tencent/tinker.git
cd tinker
git checkout v1.7.9
./gradlew install
xiaweizi commented 7 years ago

我也是

ibaoger commented 7 years ago

项目管理者已经参与进来,估计很快就能解决

guanyueyun commented 7 years ago

@shwenzhang 好了说一声呀

wlj190785060 commented 7 years ago

我也遇到这个问题 @typ0520 这个方法也不行

typ0520 commented 7 years ago

@wlj190785060 可以的,我们组里就是这样解决的,现在都好了; 注意下版本

awdvhil9 commented 7 years ago

@guanyueyun 我这边用那个方法也可以

wlj190785060 commented 7 years ago

@typ0520 可以了 谢谢你

nbcallum commented 7 years ago

很僵,居然被下线了!

zack-zjc commented 7 years ago

扎铁了,老心

guanyueyun commented 7 years ago

@awdvhil9 最后一个命令要执行多久?

image

sougoucm commented 7 years ago

image image 路径变了就可以了

--------------------------------更新一版------------------------------------------------- image image

guanyueyun commented 7 years ago

@sougoucm 我的改了也不行

simpleton commented 7 years ago

@guanyueyun 可以现在repositories里增加maven{ url 'https://dl.bintray.com/tinker/maven'} 来workaround.

guanyueyun commented 7 years ago

@simpleton 你们本地是不是有这些包了 image

guanyueyun commented 7 years ago

image 就是不行。。。我是今天才开始尝试tinker的

typ0520 commented 7 years ago

@guanyueyun 你也太衰了吧,就今天出问题了^_^; 加https://........../tinker这个地址只能解决tinker jar包的问题,腾讯别的包你还要自己在想办法,现在没出问题的都是本地有缓存

xucezzu commented 7 years ago

@guanyueyun https://jcenter.bintray.com/com/tencent/tinker/ 这个是官方的 把“tencent”改成“thinkerpatch”是一个第三方封装的,http://tinkerpatch.com/

dndxxiangyu commented 7 years ago

求帮忙解决啊,以上几种方案都不行,1.7.6

guanyueyun commented 7 years ago

@xucezzu 不是三方吧也是腾讯自己的平台吧,tinkerpatch平台的方式也是不信的也是同样的包找不到

awdvhil9 commented 7 years ago

@guanyueyun 你竟让在下gradle

awdvhil9 commented 7 years ago

@guanyueyun 没多久 一会就执行完了,我直接在as里面执行的上面的命令

hfg5961107 commented 7 years ago

Error:Could not find com.tencent.tinker:tinker-android-lib:1.7.5. Required by: project :app Search in build.gradle files

Whoisurdady commented 7 years ago

@simpleton 感谢大神,方法有效,看了下,应该是tinker团队的大拿

hfg5961107 commented 7 years ago

@guanyueyun 你解决了么? Error:Could not find com.tencent.mm:apk-parser-lib:1.2.0. Searched in the following locations: file:/D:/as/gradle/m2repository/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.pom file:/D:/as/gradle/m2repository/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.jar https://jcenter.bintray.com/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.pom https://jcenter.bintray.com/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.jar https://repo1.maven.org/maven2/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.pom https://repo1.maven.org/maven2/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.jar https://dl.bintray.com/tinker/maven/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.pom https://dl.bintray.com/tinker/maven/com/tencent/mm/apk-parser-lib/1.2.0/apk-parser-lib-1.2.0.jar Required by: project : > com.tencent.tinker:tinker-patch-gradle-plugin:1.7.11 > com.tencent.tinker:tinker-patch-lib:1.7.11

guanyueyun commented 7 years ago

@hfg5961107 放弃了,重新用andfix了,等他们解决了再来尝试

dengjiali0925 commented 7 years ago

@typ0520 请问 git clone https://github.com/Tencent/tinker.git cd tinker git checkout v1.7.9 ./gradlew install 这些命令在哪个目录下执行呢

hfg5961107 commented 7 years ago

@xiangqiuhan 我是原项目本来就用的这个,现在这问题解决不了,我总不能去把用到的地方全注释掉吧。

typ0520 commented 7 years ago

@dengjiali0925 随便那个目录执行都可以

simpleton commented 7 years ago

@hfg5961107 @dengjiali0925 @guanyueyun 缺少tinker的库:增加 maven{ url 'https://dl.bintray.com/tinker/maven'} 缺少apkparser或者AndResGuard: maven{ url 'https://dl.bintray.com/wemobiledev/maven'}

awdvhil9 commented 7 years ago

@dengjiali0925 我直接在项目目录下执行的,git clone https://github.com/Tencent/tinker.git这个命令下载的tinker就是我正在用的1.7.11,git checkout v1.7.9这个我没执行,我拷了一份local.properties,./gradlew install是在tinker目录下执行的,执行clean和build命令要退出tinker目录,在项目目录下执行

simpleton commented 7 years ago

@awdvhil9 不用做local maven...按照你缺少库的提示,增加想用的maven repo即可。

dengjiali0925 commented 7 years ago

@simpleton 已解决,谢谢啦

hfg5961107 commented 7 years ago

@simpleton Tinker插件配置中dex相关配置项报错。 Error:(126, 0) Could not set unknown property 'usePreGeneratedPatchDex' for dexMode = jar pattern = [] loader = [] ignoreWarningLoader = [] of type com.tencent.tinker.build.gradle.extension.TinkerDexExtension.

guanyueyun commented 7 years ago

@hfg5961107 老铁加上maven{ url 'https://dl.bintray.com/wemobiledev/maven'}

hfg5961107 commented 7 years ago

@guanyueyun 有加的。能找到包了、

hfg5961107 commented 7 years ago

@simpleton 解决了,谢谢大佬。

xurui1995 commented 7 years ago

@simpleton 感谢

shwenzhang commented 7 years ago

已全部恢复

qinghui commented 7 years ago

我原来1.7.11可以,现在不行了,一直提示找不到 https://jcenter.bintray.com/com/tencent/tinker/tinker-patch-gradle-plugin/1.7.11/tinker-patch-gradle-plugin-1.7.11.jar

换成1.7.9就可以,clean也报这个错,重新下代码还是一样,

classpath "com.tencent.tinker:tinker-patch-gradle-plugin:${TINKER_VERSION}" 这句改成 classpath "com.tinkerpatch.tinker:tinker-patch-gradle-plugin:${TINKER_VERSION}" 才可以, 怎么解?

dounickAC commented 3 months ago

这个是jCenter上的包,但是jCenter公开访问已经停止了,所以可以考虑通过jCenter镜像获取。我用了阿里云的jCenter镜像 https://maven.aliyun.com/nexus/content/repositories/jcenter 成功了