1.Cannot create an NSPersistentStoreCoordinator with a nil model这是在执行到这段代码时引发的:1 - (void)viewDidLoad {2 [super viewDidLoad];3 UIApplication *a...
分类:
移动开发 时间:
2015-02-07 18:43:27
阅读次数:
132
刚才又遇到了R cannot be resolved to a variable的问题,就翻了翻网上的资料,调理的整理了一下1. 检查Android 的SDK是否丢失需要重新下载,检查build path,把需要导入的JAR包确认都导入成功2. 确保class没有import Android.R,注...
分类:
移动开发 时间:
2015-02-07 14:28:26
阅读次数:
140
java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to scala.tools.eclipse.InteractiveCompilationUnityou should...
分类:
其他好文 时间:
2015-02-07 00:24:46
阅读次数:
866
报错内容:
17:21:59,843 INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export
17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import...
分类:
Web程序 时间:
2015-02-06 21:56:36
阅读次数:
232
import android.content.Context;
import android.util.TypedValue;
//常用单位转换的辅助类
public class DensityUtils
{
private DensityUtils()
{
/* cannot be instantiated */
throw new UnsupportedOperationExce...
分类:
移动开发 时间:
2015-02-06 18:54:32
阅读次数:
140
import java.io.File;
import android.os.Environment;
import android.os.StatFs;
//SD卡相关的辅助类
public class SDCardUtils
{
private SDCardUtils()
{
/* cannot be instantiated */
throw new UnsupportedO...
分类:
移动开发 时间:
2015-02-06 18:52:40
阅读次数:
134
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:support-v4:19.0.0.
Req...
分类:
移动开发 时间:
2015-02-06 13:19:37
阅读次数:
1169
解决方法,重新安装VC9或 VC11 试试,或者全部安装VC9 VC11注意:如果下载的 php5.5为32位版本, 那么安装的vc9或VC11 也必须是32位版本。 如果下载的 php5.5为64位版本, 那么安装的vc9或VC11 也必须是64位版本。Apache2.4 下载地址: ht...
分类:
Web程序 时间:
2015-02-06 12:52:29
阅读次数:
183
1.android studio 导入开源项目源码时要注意与自己包的冲突 比如 你有一个com.xxxx的包,而需要导入的是com.xx.yy 你就不能把整个包复制过来,否则会报can't resolve symbil...
因为它根据com会到你原来的包中去找相关的类。所以考的时候 只需把 xx.yy 考的你原有的 com目录下即可。
2.获取屏幕宽度: 第一种:
/**
...
分类:
其他好文 时间:
2015-02-05 18:34:26
阅读次数:
216
在项目中用了汉字正则表达式,编译并运行,Eclipse控制台输出如下异常信息:
Unable to execute dex: Cannot merge new
index 65993 into a non-jumbo instruction!?
Conversion to Dalvikformat failed: Unable to execute dex: Cannot merge new...
分类:
其他好文 时间:
2015-02-05 18:29:47
阅读次数:
141