Android java 错误解决
Android java 错误解决
彬sir哥
毕业于郑州师范学院特殊教育学院,学历:大学本科,专业:计算机科学与技术,职业:Android开发工程师
展开
-
java.lang.RuntimeException: Canvas: trying to draw too large(192000000bytes) bitmap.
怎样把项目上传到Github1.先输入名字点击“New”2.输入一样的名字再点击”create repository”后出现网址,记得复制网址第一步骤:第一步骤:3.android的Git第一步骤:第二步骤:4.java类名的棕色改为绿色第一步骤:第二步骤:5.android的VCS第一步骤:第二步骤:第三步骤:第四步骤:第五步骤:这样后提交成功...原创 2021-03-03 10:52:32 · 2192 阅读 · 19 评论 -
No resource identifier found for attribute ‘xxx‘ in package ‘android‘
&n原创 2021-06-08 13:34:38 · 873 阅读 · 3 评论 -
Android的createNewFile()报错提示:java.io.IOException: No such file or directory
&n原创 2021-06-10 19:27:43 · 2127 阅读 · 8 评论 -
FileOutputStream():java.io.FileNotFoundException: 路经/.db: open failed: EACCES (Permission denied)
android的报错提示:java.io.FileNotFoundException: /storage/emulated/0/com.demo.test/database/test.db: open failed: EACCES (Permission denied) try { ..... FileOutputStream out = new FileOutputStream(mypath); ......原创 2021-06-11 13:52:17 · 1906 阅读 · 3 评论 -
Android的报错提示:java.io.FileNotFoundException: xxx/xxx.后缀名(找不到文件)
&n原创 2021-06-24 18:50:43 · 427 阅读 · 6 评论 -
java.lang.IllegalArgumentException: baseUrl must end in /: http://xxx.xxx.x.xxx:xxxx/Handler1.ashx
&n原创 2021-07-09 11:13:11 · 1392 阅读 · 0 评论 -
java.lang.RuntimeException: An error occurred while executing doInBackground()
android的报错提示:E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2 Process: com.xiangsheng.xsface, PID: 23080 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.原创 2021-05-29 13:52:26 · 2406 阅读 · 0 评论 -
Unable to start activity ComponentInfo{com.example.administrator.CaoBin/net.yrom.screenrecorder.db.M
Android setContentView(R.layout.activity_main)不执行后的报错提示:Unable to start activity ComponentInfo{com.example.administrator.CaoBin/net.yrom.screenrecorder.db.M解决:Activity父类对应: <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">原创 2021-02-20 15:54:53 · 1053 阅读 · 0 评论 -
Android的kotlin的报错提示:java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
Android的kotlin的报错提示:java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1错误在哪,我先不说多,直接说吧看来activities可能为空或者null所以activities不能为空或者null就可以原创 2021-07-23 21:45:37 · 1079 阅读 · 1 评论 -
xception: no such table: xxx (code 1 SQLITE_ERROR): , while compiling: Select * from xxx where id= ?
android studio 4.2.2的java,dBase.rawQuery()不执行报错提示:android.database.sqlite.SQLiteException: no such table: testbiao (code 1 SQLITE_ERROR): , while compiling: Select * from testbiao where id= ?错误在哪,可以发现:dBase.rawQuery()不执行提示报错,怎么回事,这报错中发现“Select * from原创 2021-07-18 14:28:06 · 1220 阅读 · 3 评论 -
android之android.os.NetworkOnMainThreadException异常
android之android.os.NetworkOnMainThreadException异常对新手来说莫过于一个很大的坑了,遇到这个问题,你会发现,ip正确,给了访问网络的权限,buffer = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));始终会是个空对象,最后终于找到答案:从Honeycomb SDK(3.0)开始,google不再允许网络请求(HTTP、Socket)等相关操作直接在Main Thread原创 2021-07-31 13:31:04 · 254 阅读 · 0 评论 -
Android Studio 如何设置自动删除无用的包、自动导入包
1.修改项目config文件原创 2021-03-30 16:11:50 · 774 阅读 · 0 评论 -
Android的java的报错提示:java.lang.RuntimeException: Fail to connect to camera service
Android的java的报错提示:...... java.lang.RuntimeException: Fail to connect to camera service at android.hardware.Camera.<init>(Camera.java:609) at android.hardware.Camera.open(Camera.java:434) at com.luxand.facerecognition.Prev原创 2021-08-13 16:52:15 · 1728 阅读 · 2 评论 -
W/System.err: java.lang.SecurityException: Permission denied (missing INTERNET permission?)
&n原创 2021-09-10 11:13:38 · 767 阅读 · 0 评论 -
g.SecurityException: UID 10471 does not have permission to content://包名.fileprovider/***照片名 [user 0]
android的报错提示:java.lang.SecurityException: UID 10471 does not have permission to content://com.example.xch.generateqrcode.fileprovider/my_images/Android/data/com.xiangsheng.jzfp_sc/cache/output_image.jpg [user 0]错误在哪,可以发现:这报错信息中的这包名:com.example.xch.gener原创 2021-10-09 23:42:44 · 1315 阅读 · 0 评论 -
Attempt to invoke virtual method ‘android.content.res.XmlResourceParser android.content.pm.ProviderI
android的报错提示:java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)’ on a null object reference解决:在Andr原创 2021-10-10 16:58:23 · 1594 阅读 · 0 评论 -
在AS上导入第三方module项目后报错提示:Resource IDs cannot be used in a switch statement in Android library modules
在AS上导入第三方module项目后报错提示:Resource IDs cannot be used in a switch statement in Android library modules错误在哪,我不说多,直接说吧百度上说是:用switch来进行判断操作时,会报这个错误,原因是R.id.XXX这类资源id在主application中是final,是常量,而在library中,是没有final的。app的R.java文件:library的R.java文件as版本3.0.0以下可能查原创 2022-04-15 19:03:09 · 2399 阅读 · 1 评论 -
android.database.sqlite.SQLiteException: no such table: xxx (code 1 SQLITE_ERROR): , while compiling
android的报错提示:android.database.sqlite.SQLiteException: no such table: UnitTest (code 1 SQLITE_ERROR): , while compiling: SELECT T."unitCode",T."unitName",T."parentCode",T."remark" FROM "UnitTest" T WHERE length(unitCode)<23 AND unitCode LIKE '00000-00013原创 2021-06-25 11:42:09 · 4084 阅读 · 14 评论 -
g.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
android的报错提示:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.解决:MainActivity被继承到的Activity而不是AppCompatActivitypublic class MainActivity extends AppCompatActivity {......}修改后如下:public class原创 2022-01-15 12:59:55 · 939 阅读 · 0 评论 -
Android报错提示Attempt to invoke interface method ‘int java.util.List.size()‘ on a null object reference
android报错提示:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.arcsoft.arcfacedemo/com.arcsoft.arcfacedemo.activity.FaceManageActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a原创 2021-05-15 12:35:02 · 6429 阅读 · 3 评论