我的android进阶之旅解决androidstudio的translate插件报错tkk:更新ttk失败,请检查网络连接问题(代码片段)

字节卷动 字节卷动     2023-03-09     641

关键词:

一、错误描述

这几天IDEA的Translation插件一直提示“TTK失败,请检查网络连接”,提示如下所示:

TKK
更新 TKK 失败,请检查网络连接
复制到剪贴板

我的android进阶之旅解决androidstudio报错:causedby:java.io.streamcorruptedexception:invalidtypecode:00

一、问题描述今天2.14情人节,年后复工第一条上班,打开电脑,打开AndroidStudio,然后提示升级,升级到下面的版本,然后编译项目编译不过。升级日志:升级完之后,编译项目出错,日志如下:13998 查看详情

我的android进阶之旅解决android项目编译报错:programtypealreadypresent:com.xxx.xxxx.buildconfig(代码片段)

一、错误描述今天编译项目的时候,出现了一个错误如下所示:AGPBI:"kind":"error","text":"Programtypealreadypresent:com.xtc.contactapi.BuildConfig","sources":[],"tool": 查看详情

我的android进阶之旅解决ndk开发,编译的时候报错:open:invalidargumentfilexxx.soisnotwritable.(代码片段)

一、错误描述今天编译NDK项目的时候报错,如下所示:C:/Android/SDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/.. 查看详情

我的android进阶之旅解决androidstudio报错:causedby:java.io.streamcorruptedexception:invalidtypecode:00(代码片段)

一、问题描述今天2.14情人节,年后复工第一条上班,打开电脑,打开AndroidStudio,然后提示升级,升级到下面的版本,然后编译项目编译不过。升级日志:升级完之后,编译项目出错,日志如下:13998 查看详情

我的android进阶之旅解决ndk开发编译错误:abis[x86-64]arenotsupportedforplatform.(代码片段)

一、错误描述AndroidStudio指定编译armeabi-v7a,arm64-v8a,x86_64的so库的时候,编译报错了,如下所示:Couldnotdeterminethedependenciesoftask\':app:stripDebugDebugSymbols\'.>Couldnotcreatetask\':app:mergeDebugNativeLibs\'.>ABIs[x86-64]arenotsupportedforplatform.SupportedAB... 查看详情

我的android进阶之旅解决ndk开发编译错误:abis[x86-64]arenotsupportedforplatform.(代码片段)

一、错误描述AndroidStudio指定编译armeabi-v7a,arm64-v8a,x86_64的so库的时候,编译报错了,如下所示:Couldnotdeterminethedependenciesoftask\':app:stripDebugDebugSymbols\'.>Couldnotcreatetask\':app:mergeDebugNativeLibs\'.>ABIs[x86-64]arenotsupportedforplatform.SupportedAB... 查看详情

我的android进阶之旅彻底解决androidstudio编译so库的时候报错:morethanonefilewasfoundwithosindependentpath(代码片段)

文章目录一、问题描述二、分析和解决问题2.1设置packagingOptions的pickFirst属性2.2设置packagingOptions的pickFirst属性的弊端2.3彻底解决的方式2.3.1根本原因2.3.2彻底解决三、总结一、问题描述前段时间学习OpenGL的时候,当学习到渲染3D模... 查看详情

我的android进阶之旅解决使用disklrucache报错:keysmustmatchregex[a-z0-9_-]1,64(代码片段)

一、问题描述最近做个需求,使用了DiskLruCache来做缓存。然后提供API接口给其他同事使用,同事在使用过程中不规范,传入了一个invalidate无效的key,导致出现了异常。java.lang.IllegalArgumentException:keysmustmatchregex[a-z0-9_-]1,64:""md5 查看详情

我的android进阶之旅解决:thecurrentlyselectedvariant“debug“usessplitapks,butnoneofthe1split...(代码片段)

一、错误描述在Github下载了一份代码,在本地运行看看效果,直接运行失败,如下所示:错误描述如下所示:Thecurrentlyselectedvariant"debug"usessplitAPKs,butnoneofthe1splitapksarecompatiblewiththecurrentdevicewithABIs"armeabi-v7a,armeabi".翻译过来就是:... 查看详情

我的android进阶之旅解决:thecurrentlyselectedvariant“debug“usessplitapks,butnoneofthe1split...(代码片段)

一、错误描述在Github下载了一份代码,在本地运行看看效果,直接运行失败,如下所示:错误描述如下所示:Thecurrentlyselectedvariant"debug"usessplitAPKs,butnoneofthe1splitapksarecompatiblewiththecurrentdevicewithABIs"armeabi-v7a,armeabi".翻译过来就是:... 查看详情

我的android进阶之旅解决androidstudio的translate插件报错tkk:更新ttk失败,请检查网络连接问题(代码片段)

这里写目录标题一、错误描述二、解决错误方法2.1打开Translation配置2.2解决错误方法1修改hosts文件2.2.1修改hosts文件2.2.2测试一下2.3解决错误方法2切换到百度翻译2.3.1配置百度翻译2.3.2申请百度翻译的程序ID和秘钥2.3.3测试翻译插件... 查看详情

我的android进阶之旅解决androidstudio的translate插件报错tkk:更新ttk失败,请检查网络连接问题(代码片段)

这里写目录标题一、错误描述二、解决错误方法2.1打开Translation配置2.2解决错误方法1修改hosts文件2.2.1修改hosts文件2.2.2测试一下2.3解决错误方法2切换到百度翻译2.3.1配置百度翻译2.3.2申请百度翻译的程序ID和秘钥2.3.3测试翻译插件... 查看详情

我的android进阶之旅解决androidstudio报错:发现了以元素‘base-extension‘开头的无效内容。应以‘layoutlib‘之一开头。

...se-extension\'开头的无效内容。应以\'layoutlib\'之一开头。2.1AndroidGradlePlugin(AGP)和AndroidStudio兼容性2.1.1版本编号变更(2020年11月)2.1.2AGP7.0和JDK112.1.3AGP4.2和JDK82.2解决问题2.2.1升级AndroidGradlePluginVersion和GradleVe 查看详情

我的android进阶之旅androidstudiodolphin|2021.3.1版本,配置使用java1.8出错(代码片段)

...录一、错误描述1.1错误详情1.2version52.0和55.0是什么意思1.3AndroidStudio版本二、解决错误三、总结一、错误描述1.1错误详情今天使用AndroidStudio编译一个GitHub上clone下来的项目的时候出错了,如下所示:FAILURE:Buildfailedwithanexception.*Whatw... 查看详情

我的android进阶之旅androidstudiodolphin|2021.3.1版本,配置使用java1.8出错(代码片段)

...录一、错误描述1.1错误详情1.2version52.0和55.0是什么意思1.3AndroidStudio版本二、解决错误三、总结一、错误描述1.1错误详情今天使用AndroidStudio编译一个GitHub上clone下来的项目的时候出错了,如下所示:FAILURE:Buildfailedwithanexception.*Whatw... 查看详情

我的android进阶之旅cmake出异常:erroroccurredwhilecommunicatingwithcmakeserver.(代码片段)

一、问题描述1.1错误信息在github下载了一份源码,然后编译出现异常,如下所示:SupportforCMake3.7andhigherisapreviewfeature.Toreportabug,seehttps://developer.android.com/studio/report-bugs.htmlSupport 查看详情

我的android进阶之旅cmake出异常:erroroccurredwhilecommunicatingwithcmakeserver.(代码片段)

一、问题描述1.1错误信息在github下载了一份源码,然后编译出现异常,如下所示:SupportforCMake3.7andhigherisapreviewfeature.Toreportabug,seehttps://developer.android.com/studio/report-bugs.htmlSupport 查看详情

我的android进阶之旅jetbrains全家桶系列的ide,比如androidstudio,idea,pycharm之类的使用git超慢的问题的解决方法(代码片段)

一、问题描述去年的时候,有Android开发的同事反馈使用AndroidStudio的Git提交代码的时候超级慢,也有服务器同事反馈IDEA的Git提交代码的时候超级慢的问题。也有同事调侃,一般使用Git提交代码的时候,就去上个测试。有些人反馈... 查看详情