自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 Call requires permission which may be rejected by user

需要user先确认开启,经permission check。

2023-10-13 15:37:29 175

原创 test报错变红,AndroidJUnit4报错变红

如果创建一个测试JUnit 4测试类以在设备或模拟器上运行,则此测试类须以@RunWith(AndroidJUnit4.class)注释为前缀。借鉴:https://www.jianshu.com/p/ba4f87fd6fd6。

2023-10-08 16:03:17 575 1

原创 Assert变红,提示:Add library ‘Gradle:junit:junit:4.13.2‘ to classpath

看到有这个Dependency。

2023-10-07 15:17:26 316 1

原创 The SourceSet ‘instrumentTest‘ is not recognized by the Android Gradle Plugin. Perhaps you misspelle

"instrumentTest"替换为“androidTest”,即可。

2023-08-21 15:24:53 98 1

原创 Attribute android versionCode is not allowed here

AndroidManifest.xml的。SDK版本跟build.gradle里的"里的SDK的版本不一致。

2023-08-21 14:57:31 1035 1

原创 Namespace not specified. Please specify a namespace in the module‘s build.gradle file like so:andr

namespace 'com.example.XXX’和 applicationId "com.example.XXX"的“XXX”改成project的namespace 'com.example.XXX’和 applicationId “com.example.XXX”里的"XXX"原文链接:https://blog.csdn.net/qq_29862247/article/details/131088532。在module的build:gradle里,

2023-08-21 14:43:33 3414 1

原创 ..\USER\stm32f10x.h(298): error: #67: expected a “}“

高密度:HD:闪存密度在256 ~ 512kbytes之间。低密度:LD:闪存密度范围在16到32千字节之间;中密度:MD:闪存密度范围在64到128千字节之间;调整对应的后缀,HD改成MD,OK!

2023-08-08 14:57:37 561

原创 We recommend using a newer Android Gradle plugin to use compileSdk = 34

在gradle.properties里添加“android.suppressUnsupportedCompileSdk=34”

2023-08-08 09:55:09 4100

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除