AndroidStudio错误
程序猿强哥
这个作者很懒,什么都没留下…
展开
-
Android的属性动画(二)加载框圆点旋转收缩放大缩小效果的实现
案例效果图如下,案例实现步骤1.首先用drawCircle()画好6个圆点 private void drawCircles(Canvas canvas) { //每个小圆之间的间隔角度 = 2π/小圆的个数 float rotationAngle = (float) (2*Math.PI/mCircleColors.length); Log.i("barry","length------:"+mCircleColors.length)原创 2020-07-08 14:13:19 · 2301 阅读 · 1 评论 -
The color “baseBlac in values has no declaration in the base values folder this can lead to crash
在module lib中定义了如下资源然后就报了这个错误"The color “baseBlac” in values has no declaration in the base values folder; this can lead to crash导致我无法通过R.color.baseBlack引用解决办法此时,你会发现可以通过R.color.baseBlack引用了但有个小问题,就是colors文件失去了代码高亮的效果,但并不影响运行,只能将就下了。...原创 2020-06-03 11:39:33 · 9348 阅读 · 1 评论 -
This file is not part of the project. Please include it in the appropriate build file
This file is not part of the project. Please include it in the appropriate build file(build.gradle,CMakeLists.txt or Android.mk etc.) and sync the project.出现上面这种错误的原因是AndroidStudio的版本和Gradle版本不一致,导致AndroidStudio不能很好的支持gradle,从而引发的错误。比如:下面的例子我的Android原创 2020-05-09 14:07:27 · 5280 阅读 · 1 评论