Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinker获取不到了 #556

Closed
awdvhil9 opened this issue Jul 20, 2017 · 46 comments
Closed

tinker获取不到了 #556

awdvhil9 opened this issue Jul 20, 2017 · 46 comments

Comments

@awdvhil9
Copy link

异常类型:编译异常

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
Copy link
Author

awdvhil9 commented Jul 20, 2017

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

@xiangqiuhan
Copy link

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

@ibaoger
Copy link

ibaoger commented Jul 20, 2017

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

@guanyueyun
Copy link

真的坑

@shwenzhang
Copy link
Contributor

shwenzhang commented Jul 20, 2017

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

@typ0520
Copy link

typ0520 commented Jul 20, 2017

加上 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
Copy link

我也是

@ibaoger
Copy link

ibaoger commented Jul 20, 2017

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

@guanyueyun
Copy link

@shwenzhang 好了说一声呀

@wlj190785060
Copy link

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

@typ0520
Copy link

typ0520 commented Jul 20, 2017

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

@awdvhil9
Copy link
Author

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

@wlj190785060
Copy link

@typ0520 可以了 谢谢你

@nbcallum
Copy link

很僵,居然被下线了!

@zack-zjc
Copy link

zack-zjc commented Jul 20, 2017

扎铁了,老心

@guanyueyun
Copy link

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

image

@sougoucm
Copy link

sougoucm commented Jul 20, 2017

image
image
路径变了就可以了

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

@guanyueyun
Copy link

@sougoucm 我的改了也不行

@simpleton
Copy link
Contributor

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

@guanyueyun
Copy link

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

@guanyueyun
Copy link

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

@typ0520
Copy link

typ0520 commented Jul 20, 2017

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

@xucezzu
Copy link

xucezzu commented Jul 20, 2017

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

@dndxxiangyu
Copy link

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

@guanyueyun
Copy link

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

@awdvhil9
Copy link
Author

@guanyueyun 你竟让在下gradle

@awdvhil9
Copy link
Author

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

@hfg5961107
Copy link

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

@Whoisurdady
Copy link

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

@hfg5961107
Copy link

@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
Copy link

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

@dengjiali0925
Copy link

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

@hfg5961107
Copy link

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

@typ0520
Copy link

typ0520 commented Jul 20, 2017

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

@simpleton
Copy link
Contributor

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

@awdvhil9
Copy link
Author

@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
Copy link
Contributor

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

@dengjiali0925
Copy link

@simpleton 已解决,谢谢啦

@hfg5961107
Copy link

@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
Copy link

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

@hfg5961107
Copy link

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

@hfg5961107
Copy link

@simpleton 解决了,谢谢大佬。

@xurui1995
Copy link

@simpleton 感谢

@shwenzhang
Copy link
Contributor

已全部恢复

@qinghui
Copy link

qinghui commented Jul 21, 2017

我原来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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests