java
songyunbiao
这个作者很懒,什么都没留下…
展开
-
Could not resolve com.android.support:multidex:1.0.2.
情境将Android Studio从较低版本升级到3.0.1(或者更高),报出Could not resolve com.android.support:multidex:1.0.2错误。解决方式在project的build.gradle的buildscript和allprojects的repositories中里添加阿里云的maven镜像maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }maven{转载 2021-01-21 10:42:32 · 629 阅读 · 0 评论 -
The library 'xx.jar' contains native libraries that will not run on the device解决办法
The library 'SocialSDK_QQZone_2.jar' contains native libraries that will not run on the device.The following libraries were found:- assets/libwbsafeedit.so解决办法:window-》preference-》Android-》bui转载 2015-01-09 17:53:10 · 729 阅读 · 0 评论 -
BitmapDrawable cannot be cast to android.graphics.drawable.AnimationDrawable解决办法
错误提示:java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.AnimationDrawable最后找到Activity的代码,原来drawable的资源放错啦,应该是drawable下面的xml的名字,改原创 2015-01-11 17:53:37 · 12637 阅读 · 0 评论 -
java.lang.IllegalArgumentException Unknown URL contentdownloadsmy_downloads
异常:java.lang.IllegalArgumentException Unknown URL contentdownloadsmy_downloads原因:手机下载管理器没有打开解决办法:在手机(华为)上选择:设置——>管理应用程序——>全部——>找到 下载管理器点击启动原创 2015-01-02 12:54:32 · 918 阅读 · 0 评论 -
setMinDate出现java.lang.IllegalArgumentException: fromDate:xxx does not preced toDate: xxx异常的简单解决办法
出现这个的原因有可能是你设置的最小日期大于等于当前日期,从源代码来看,最小日期必须不等于当前日期。解决办法:datePicker.setMinDate(System.currentTimeMillis()-1000);原创 2015-04-22 09:27:02 · 8120 阅读 · 0 评论 -
Date(日期)的生成的转换
1、Date的生成、转换为longDate dt = new Date("2015/05/12");System.out.println(dt.toString()); long mTime = dt.getTime() / 1000; // 得到秒数,Date类型的getTime()返回毫秒数System.out.println(mTime);输出结果:Tue原创 2015-05-12 17:41:46 · 680 阅读 · 0 评论 -
字符串截取
public class splitTest { public static void main(String[] args) { String s = new String("01:大汽车:lkasjdkl:13213"); String a[] = s.split(":"); System.out.println(a[0]); System.out.println(a[1])原创 2015-05-12 17:31:49 · 489 阅读 · 0 评论 -
Unable to instantiate activity ComponentInfo java.lang.ClassNotFoundException: Didn't find class on
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{*****}: java.lang.ClassNotFoundException: Didn't find class "" on path: DexPathList[[zip file "/data/app/com.myproject-1.apk"原创 2015-05-19 22:55:58 · 1262 阅读 · 0 评论