Android studio配置的相关问题

Error:Execution failed for task ':missfreshLib:transformNativeLibsWithStripDebugSymbolForRelease'.
> A problem occurred starting process 'command 'D:\android-studio-install\sdk\ndk-bundle\toolchains\mips64el-linux-android-4.9\prebuilt\windows-x86_64\bin\mips64el-linux-android-strip''
NDK从版本16更新到版本17后,发生以下错误
看到http://www.mingjianhua.com/post/71.html(作者 :不愿孤独)的解决方法
大意是去https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip下载版本16的NDK,将对应的文件夹darwin-x86_64替换,(windows测试不可以)
查到https://blog.csdn.net/fengchao1993/article/details/80415494(作者 :fengchao1993)
解决办法,去https://developer.android.google.cn/ndk/downloads/older_releases#ndk-16b-downloads下载版本16的NDK,将studio下载的NDK整体替换(windows测试通过)

Error:(31, 0) Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Open File
android gradle tools 3.X 中依赖中,implementation api 和compile 的介绍
解决办法具体介绍参看https://blog.csdn.net/soslinken/article/details/73114637(作者:Lincoln)

项目中通过Gradle配置了批量修改APK名字的配置
Error:(63, 0) Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN, fullName=debug, filters=[]}} of type com.android.build.gradle.internal.api.ApkVariantOutputImpl.
Open File
3.0之后的配置中output.outputFile变成了只读属性,不能再往里面写东西了,以下是3.0之前的配置
解决方法:https://blog.csdn.net/uu00soldier/article/details/78440953(作者:凌伊)


Error:FAILURE: Build failed with an exception.
* What went wrong:
Could not find matching constructor for: org.gradle.util.Clock()
* Try:
Run with --stacktrace option to get the stack trace. 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
BUILD FAILED in 16s
解决方法:设置gradle-wrapper中的gradle版本为4.1,设置project中的gradle tools版本为3.0.1

Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> Unexpected scopes found in folder 'D:\workspace_companyAndroid\no-orderdispatch-friend\app\build\intermediates\transforms\AspectTransform\debug'. Required: PROJECT, SUB_PROJECTS, EXTERNAL_LIBRARIES. Found: EXTERNAL_LIBRARIES, PROJECT, PROJECT_LOCAL_DEPS, SUB_PROJECTS, SUB_PROJECTS_LOCAL_DEPS
原因:由于埋点统计神策SensorsAnalyticsSDK依赖了aspectjrt,导致。通过gradle命令查看依赖树,可以比较直观的看到冲突。具体方法是在模块所在的目录,也即build.gradle所在目录下执行gradle dependencies(需要将gradle加入PATH环境变量)
解决方法:我用到的第三方插件是神策埋点,在project build.gradle中将神策的插件升级到1.2.0,clean一下即可

Error:Failed to resolve: com.sensorsdata.analytics.android:SensorsAnalyticsSDK:1.10.0
Open File
Show in Project Structure dialog

 

Source Insight4.0安装教程:http://www.jb51.net/softjc/566409.html。下载地址:http://www.jb51.net/softs/548809.html。使用教程:https://jingyan.baidu.com/article/fec4bce29dbb3bf2618d8bbc.html

 

 

线程池,核心满了之后放队列还是开新的线程:放队列。
队列满了之后:新建非核心线程执行
核心线程是啥时候启动的:线程池新建线程的时候,如果当前线程总数小于corePoolSize(核心线程数),则新建的是核心线程。如果队列已经满了,超过corePoolSize但是没有超过最大线程数,则新建非核心线程执行
队列已满,总线程数又达到了maximumPoolSize,就会抛出RejectedExecutionHandler异常

 

 

OOM
1,类似于at com.bumptech.glide.gifdecoder.GifDecoder.setData(GifDecoder.java:430)导致的OOM
    可以定位到ProductFragment中的BannerViewPager,在banner中ImageView的缩放类型为fitxy,这样的话会全分辨率加载。
    参考网址:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0606/3002.html
2类似于at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)导致的OOM
    在SmAntiFraud.getDeviceId(),StringBuilder拼接(扩容)的时候报OOM

你可能感兴趣的:(Android)