- 博客(17)
- 收藏
- 关注
原创 java.lang.NoSuchFieldError: No static field septal_line3 of type I in class com/example/xxxxx/xxxxxx
03-27 08:41:48.942 29308-29308/com.xx.xxxxxxxxxxxxx E/AndroidRuntime: FATAL EXCEPTION: main Process: com.xx.xxxxxxxxxxxxx, PID: 29308 java.lang.NoSuchFieldError: No static field septal_line3 ...
2020-03-27 09:48:07
164173
原创 org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'
导入别人的新工程,报错:org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(Lifec...
2020-03-26 15:27:32
9887
5
原创 AlertDialog按钮 确定 消失 看不见 颜色浅的问题
参考:AlertDialog 按钮不显示 按钮颜色设置问题本来很正常,把工作作为module导入之后,确定和取消按钮就非常浅了,于是在styles.xml文件<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. ...
2019-07-01 14:59:06
1167
原创 Intent之后activitybar报错This Activity already has an action bar supplied by the window decor.
解决一个app的theme在intent之后与module之后的theme兼容的问题程序中使用intent跳转到一个新的activity,这个activity是作为module导入,强行合成的一个工程,跳转的时候闪退并且会报错 Process: com.xx.Dxxxxxxxxxx, PID: 4500 java.lang.RuntimeException: Unable ...
2019-06-29 20:12:24
211
原创 Manifest merger failed with multiple errors, see logs
在project中导入module,提示Manifest merger failed with multiple errors, see logs点击“Build”中的这个图标给出详细错误信息:D:\project\kokosun\KoCalculator_cal\app\src\main\AndroidManifest.xml:7:9-43 Error: Attr...
2019-06-26 09:08:55
128
原创 动态加载插件报错You need to use a Theme.AppCompat theme (or descendant) with this activity.
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.sf.DarkCalculator, PID: 13063 ...
2019-06-24 16:42:09
813
原创 解决动态加载java.lang.UnsatisfiedLinkError: dlopen failed * is 32-bit instead of 64-bit 报错
用动态加载的方式拉起插件apk,由于插件apk中有so文件,于是出现错误E/AndroidRuntime: FATAL EXCEPTION: Thread-7 Process: androidx.xxxxxxdemo, PID: 8303 ...
2019-06-21 16:52:06
3671
1
原创 360droid plugin 插件generate signed APK时can't find superclass or interface android.util.Singleton
Warning:com.morgoo.droidplugin.hook.proxy.IActivityManagerHook$1: can't find superclass or interface android.util.SingletonWarning:com.morgoo.droidplugin.hook.proxy.IActivityManagerHook$1: can't fin...
2019-06-14 14:19:34
246
原创 Android OTG数据不能写入
可以读取OTG优盘的数据,但是无法写入说是权限问题,加入权限之后还是说权限有问题原来是像TF卡一样只能写入沙河路径,改了之后正确
2019-05-06 18:00:43
1982
原创 Android 在指定位置插入数据,在文件起始写WAV文件头
写好的文件,在指定位置插入数据这里是写好的PCM格式音频,回到文件开头写入WAV文件头RandomAccessFile raf = new RandomAccessFile(FileName, "rw");raf.seek(pos);raf.write(buffer,0,num);参考https://www.cnblogs.com/dongguacai/p/5699444.ht...
2019-04-23 11:41:10
877
转载 Android Studio 一个module引用另一个模块module的方法
转自Android Studio引用另一个模块module的方法app中有两个module,其中一个需要引用另一个的jni库,直接在app模块中引用这个类 提示无法解析这个类android中引用别的module 需要加入对它的依赖选择了 直接修改build.gradle脚本引入的方式修改build.gradle实现app 模块的 build.gradle: dependenc...
2019-04-23 11:29:32
11943
原创 Android so库编译错误 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file
10-11 11:33:14.047 7427-7427/com.example.xxxxxxxx E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.xxxxxxxx, PID: 7427...
2019-03-21 10:24:02
1045
原创 Android home键录音停止无法后台
网上下载录音demo按下home键时录音停止打印日志发现按下home键时activity的onPause()方法中执行停止录音的函数,注释后正常后台
2018-10-23 16:24:08
372
原创 Android java.lang.RuntimeException: takePicture failed
自定义相机拍照之后会卡在图片界面,再次点击拍照,程序闪退错误日志如下:java.lang.RuntimeException: takePicture failed, error=-38 at android.hardware.Camera.native_takePicture(Native Method) at android.hardware.Camera.ta...
2018-09-18 14:20:39
5405
原创 E/HAL: load: id=gralloc != hmi->id=gralloc
简单的Handler练习,一直提示E/HAL: load: id=gralloc != hmi->id=gralloc这个错误,后发现handler没有初始化:private Handler handler ;改为:private Handler handler = new Handler();即可...
2018-07-06 09:39:44
524
原创 Call requires permission which may be rejected by user: code should explicitly check to see if permi
Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException不影响编译但一直...
2018-04-02 18:16:16
717
原创 Android studio工程编译Error:Execution failed for task ':app:processDebugResources'. 问题
Execution failed for task ':app:processDebugResources'.> com.android.ide.common.process.ProcessException: Failed to execute aapt把同事的工程拷过来之后新建工程粘贴代码,一直出现这个问题,把compileSdkVersion 23buildToolsVersion "...
2018-03-29 11:30:06
3470
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人