我以前一直使用谷歌播放服务8.3.0没有任何问题.我正在寻求升级到谷歌播放服务8.4.0.我正在使用以下播放库:
compile 'com.google.android.gms:play-services-analytics:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
Run Code Online (Sandbox Code Playgroud)
当我启动应用程序时崩溃,使用以下日志.
12-27 03:01:33.915 20567-20567/com.ryanc.android.stage.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ryanc.android.stage.debug, PID: 20567
java.lang.NoSuchMethodError: No static method zzz(Ljava/lang/Object;)Ljava/lang/Object; in class Lcom/google/android/gms/common/internal/zzx; or its super classes (declaration of 'com.google.android.gms.common.internal.zzx' appears in /data/app/com.ryanc.android.stage.debug-1/base.apk:classes17.dex)
at com.google.android.gms.measurement.internal.zzw.zzaT(Unknown Source)
at com.google.android.gms.measurement.AppMeasurementContentProvider.onCreate(Unknown Source)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)
at android.app.ActivityThread.installProvider(ActivityThread.java:4999)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Run Code Online (Sandbox Code Playgroud)
编辑:不确定它会有所帮助,但在@gerardnimo请求这里是完整的build.gradle文件.另外值得注意的是,我已尝试从我的计算机上清理构建并删除并重新安装播放服务sdks.
apply plugin: 'com.android.application'
apply plugin: 'checkstyle' …Run Code Online (Sandbox Code Playgroud) 我已经看了很多,但我似乎只能获得与此问题相关的webView和表格.我的完全不同似乎与同样的崩溃异常:
CALayerInvalidGeometry',原因:'CALayer bounds包含NaN:[0 0; 南楠]
基本上我在这里有一个视图,淡化和缩放图像.我最近决定在UIView动画中使用CGAffineTransformScale更改我的代码,而不是每次计时器滴答时都缩放一个档次.这使用较少的处理能力.
但无论我有什么顺序,它都会在19世纪之后崩溃.它所引用的定位坐标数组似乎不是问题,因为它只有6个长度,并在达到其长度后循环.所以出于某些原因,因为我已经实现了这个动画代码,它让我崩溃了.谁知道为什么?
这是我开始崩溃后改变的部分:
-(void) onTimer{
if(scaleTimer_A==5){
imageView_A.image = [UIImage imageNamed:[attractList_A objectAtIndex:imageIndex_A]];
imageView_A.frame = CGRectMake(300, 200, 3.86, 3.86);
imageView_A.center = CGPointMake(attractLocs_x_A[attractLocs_A_index], attractLocs_y_A[attractLocs_A_index]);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2];
imageView_A.alpha = 1;
imageView_A.transform = CGAffineTransformScale(imageView_A.transform, 100, 100);
[UIView commitAnimations];
}
if(scaleTimer_A==10){
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.75];
imageView_A.alpha = 0;
imageView_A.transform = CGAffineTransformScale(imageView_A.transform, 1.2, 1.2);
[UIView commitAnimations];
scaleTimer_A=0;
imageIndex_A+=1;
if(imageIndex_A==imageIndex_A_size){
imageIndex_A=0;
}
attractLocs_A_index+=1;
if(attractLocs_A_index==attractLocs_A_SIZE){
NSLog(@"Back to zero A");
attractLocs_A_index=0;
}
NSLog(@"Image A =%@", [attractList_A objectAtIndex:imageIndex_A]);
}
scaleTimer_A+=1;}
Run Code Online (Sandbox Code Playgroud)
编辑: …
好的,所以我正在为Windows Phone开发一个应用程序,我似乎无法弄清楚这个问题是什么.
首先,我应该说我的应用程序编译没有警告,没有错误,nada.看起来像一个魅力.
但是,当我将应用程序构建到模拟器或我手头上的两个不同WP7设备中的任何一个时,启动屏幕会显示一瞬间,然后我将返回到设备的主屏幕.
看输出:
'taskhost.exe' (Managed): Loaded 'mscorlib.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.RuntimeHost.dll'
'taskhost.exe' (Managed): Loaded 'System.dll'
'taskhost.exe' (Managed): Loaded 'System.Windows.dll'
'taskhost.exe' (Managed): Loaded 'System.Core.dll'
'taskhost.exe' (Managed): Loaded 'System.Xml.dll'
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\Subsplash.ExampleLibrary.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded '\Applications\Install\6D7C6AA5-7D7C-4056-8BF7-1097F7FBAC40\Install\ClientCore.dll', Symbols loaded.
'taskhost.exe' (Managed): Loaded 'System.Xml.Linq.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.dll'
'taskhost.exe' (Managed): Loaded 'Microsoft.Phone.Interop.dll'
The thread '<No Name>' (0xda1003e) has exited with code 0 (0x0).
The thread '<No Name>' (0xd660032) has exited with code 0 (0x0).
The program '[206110770] taskhost.exe: Managed' …Run Code Online (Sandbox Code Playgroud) 每当我尝试在R中安装软件包时,都会收到以下错误:
Error in readRDS(file) : unknown input format
Run Code Online (Sandbox Code Playgroud)
这刚刚在系统崩溃后开始发生.我在Windows 7下运行32位R 2.13.0.我尝试删除并重新安装R,但继续得到错误.有没有办法解决这个问题而不删除所有内容(即我安装的所有软件包)并重新开始?
谢谢
我调用addImageToQueue后,我的应用程序崩溃了.我添加了initWithObjects:forKeys:count:但它没有帮助我.
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSDictionary initWithObjects:forKeys:count:]:
method only defined for abstract class.
Define -[DictionaryWithTag initWithObjects:forKeys:count:]!'
Run Code Online (Sandbox Code Playgroud)
我的代码
- (void)addImageToQueue:(NSDictionary *)dict
{
DictionaryWithTag *dictTag = [DictionaryWithTag dictionaryWithDictionary:dict];
}
@interface DictionaryWithTag : NSDictionary
@property (nonatomic, assign) int tag;
- (id)initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count;
@end
@implementation DictionaryWithTag
@synthesize tag;
- (id)initWithObjects:(id *)objects forKeys:(id *)keys count:(NSUInteger)count
{
return [super initWithObjects:objects forKeys:keys count:count];
}
@end
Run Code Online (Sandbox Code Playgroud) 我最近将我的xcode项目改为iOS 7,而不是支持iOS 5.在应用程序启动后立即进行此更改后,我在控制台中收到此消息.
-[UICachedDeviceWhiteColor shadowColor]: unrecognized selector sent to instance 0x156f22f0
Run Code Online (Sandbox Code Playgroud)
我不确定是什么原因造成的.但使用调试器似乎我的应用程序委托在第一行代码崩溃.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window.rootViewController = self.tabBarController; //this line is where it crashes
[self.window makeKeyAndVisible];
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激
这是我第一次使用Proguard时,我注意到如果你添加许多自定义规则,proguard-project.txt那么显然需要更多的时间来构建.这导致Eclipse崩溃报告GC overhead limit exceeded,然后我必须强制关闭java,因为编辑器继续弹出错误和警告对话框.有没有办法避免Eclipse上的这些连续崩溃,所以解决这里报告的问题呢?
我的应用程序存在很大问题.它崩溃了,我不知道为什么.
在我的应用我有Activity一个listview和一个customlistviewadapter和第二Detailactivity.我想从Android Lollipop添加材料设计,这是我的问题.我在两者之间添加了很好的Activity Transaction Activities.
我将listviewelement中的图片和标题从listview中取出并使用a SparseArray<Bitmap>来传输图片,intent并ActivityOptions传输其余的数据.
交易从我的第一次Activity到DetailActivity工作正常.在我,DetailActivity我必须加载更多的数据,其中一个是描述.描述文本有\n标记新行,有时也有xhtml标记.摆脱我正在使用的\n标签String mdesc = text.replace("\n", "<br />");.
所以现在我只有xhtml标签,并且在我的textview中看起来很漂亮我使用这一行description.setText(Html.fromHtml(mdesc));.
也像魅力一样工作,但如果我点击后退按钮,当描述中的字符数高于~3800时,应用程序崩溃.
这是我的logcat:
A/art? art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception 'java.lang.IllegalStateException' thrown in void android.os.MessageQueue.nativePollOnce(long, i
A/art? art/runtime/check_jni.cc:65] in call to CallVoidMethodV
A/art? art/runtime/check_jni.cc:65] from void android.os.MessageQueue.nativePollOnce(long, int)
A/art? art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
A/art? art/runtime/check_jni.cc:65] | …Run Code Online (Sandbox Code Playgroud) 每当我启动我的应用程序时,java.lang.IllegalArgumentException: column '_id' does not exist我的LogCat 都会出错.我已经创建了这个列'_id',但它仍然会抛出这个.这是我的主要.java:
package com.gantt.shoppinglist;
import android.app.Dialog;
import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
public class ShoppingList extends ListActivity {
private DataHelper DataHelper;
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
DataHelper = new DataHelper(this);
Cursor c = (Cursor) DataHelper.selectAll();
long id = c.getLong(c.getColumnIndex("_id"));
startManagingCursor(c);
ListView lv = (ListView) findViewById(android.R.id.list);
String[] from …Run Code Online (Sandbox Code Playgroud) 正常运行时,我的程序崩溃并出现分段错误.所以我用gdb运行它,但是当我这样做时它不会崩溃.有谁知道为什么会这样?我知道Valgrind的faq提到了这一点(并没有在valgrind下崩溃),但我真的找不到与谷歌中的gdb相关的任何内容.如果有人能告诉我原因,或者在发生这种情况时建议寻找一些东西,我将非常感激.