Unity Heyzap 9.10.1 Vungle 4.0.1 not initialized. Runtime error in Android - heyzap

I have been trying to integrate Heyzap with Vungle, Admob, Chartboost, Unity Ads and Facebook Audience Network.
Except Admob and Vungle, everything else is working fine.
For Admob I am not getting any error. But no Reward Videos are playing. Banner and Interstitial alone working fine.
In case of Vungle, I think Heyzap is trying to play, but due to initialization error, its unable to do so. Attached error below
I am not taking direct apk output from Unity. Its been first exported to Android Studio Project and then I compile all modules to take the apk.
Platform
Unity - 5.4.3p4
Google play service version - 10.0.1
Heyzap - latest version ( 9.10.1 )
Exception/Error
Rejecting re-init on previously-failed class java.lang.Class<com.vungle.publisher.sn>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;
at void com.vungle.publisher.sk.<init>() (vungle:46)
at java.lang.Object com.vungle.publisher.sl.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rl.get() (vungle:10)
at void com.vungle.publisher.sh.injectMembers(java.lang.Object) (vungle:7)
at void com.vungle.publisher.rw.a(com.vungle.publisher.sf) (vungle:4430)
at void com.vungle.publisher.sf.<init>() (vungle:26)
at java.lang.Object com.vungle.publisher.sg.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rm.get() (vungle:10)
at void com.vungle.publisher.yr.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yq.get() (vungle:8)
at void com.vungle.publisher.yi.injectMembers(java.lang.Object) (vungle:7)
at java.lang.Object com.vungle.publisher.yh.get() (vungle:8)
at void com.vungle.publisher.yo.injectMembers(java.lang.Object) (vungle:8)
at java.lang.Object com.vungle.publisher.yn.get() (vungle:8)
at void com.vungle.publisher.ye.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yd.get() (vungle:8)
at void com.vungle.publisher.qa.injectMembers(java.lang.Object) (vungle:17)
at java.lang.Object com.vungle.publisher.pz.get() (vungle:8)
at void com.vungle.publisher.e.injectMembers(java.lang.Object) (vungle:24)
at java.lang.Object com.vungle.publisher.d.get() (vungle:8)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(com.vungle.publisher.VunglePubBase) (vungle:133)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(java.lang.Object) (vungle:18)
at void com.vungle.publisher.rw.a(com.vungle.publisher.VunglePubBase) (vungle:4415)
at boolean com.vungle.publisher.VunglePubBase.init(android.content.Context, java.lang.String) (vungle:99)
at boolean com.vungle.publisher.VunglePub.init(android.content.Context, java.lang.String) (vungle:33)
at void com.heyzap.sdk.mediation.adapter.VungleAdapter.onStart() (VungleAdapter.java:94)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GooglePlayServicesClient$ConnectionCallbacks" on path: DexPathList[[dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-vunglePub_724db8a828a3a586b4f4db2f65c96cc0429082ae-classes.dex", dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-vunglePlugin_f8395a7b82d1eaa5336e1b9d607cb5125fc9ed7c-classes.dex", dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-vungle-publisher-adaptive-id-4.0.3_2cccecc2fb915338ed2645c765b198c2f7af0284-classes.dex", dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-unitydialogplugin_fcfa6cff156e634342ad230b316d5e851da59364-classes.dex", dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-unityAds-unspecified-jars_83e46d29cb71456edd501e16a1e657053bcdc7fc-classes.dex", dex file "/data/data/com.xxxx.games.xxxx/files/instant-run/dex/slice-unity-classes_a2
at void com.vungle.publisher.sk.<init>() (vungle:46)
at java.lang.Object com.vungle.publisher.sl.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rl.get() (vungle:10)
at void com.vungle.publisher.sh.injectMembers(java.lang.Object) (vungle:7)
at void com.vungle.publisher.rw.a(com.vungle.publisher.sf) (vungle:4430)
at void com.vungle.publisher.sf.<init>() (vungle:26)
at java.lang.Object com.vungle.publisher.sg.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rm.get() (vungle:10)
at void com.vungle.publisher.yr.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yq.get() (vungle:8)
at void com.vungle.publisher.yi.injectMembers(java.lang.Object) (vungle:7)
at java.lang.Object com.vungle.publisher.yh.get() (vungle:8)
at void com.vungle.publisher.yo.injectMembers(java.lang.Object) (vungle:8)
at java.lang.Object com.vungle.publisher.yn.get() (vungle:8)
at void com.vungle.publisher.ye.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yd.get() (vungle:8)
at void com.vungle.publisher.qa.injectMembers(java.lang.Object) (vungle:17)
at java.lang.Object com.vungle.publisher.pz.get() (vungle:8)
at void com.vungle.publisher.e.injectMembers(java.lang.Object) (vungle:24)
at java.lang.Object com.vungle.publisher.d.get() (vungle:8)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(com.vungle.publisher.VunglePubBase) (vungle:133)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(java.lang.Object) (vungle:18)
at void com.vungle.publisher.rw.a(com.vungle.publisher.VunglePubBase) (vungle:4415)
at boolean com.vungle.publisher.VunglePubBase.init(android.content.Context, java.lang.String) (vungle:99)
at boolean com.vungle.publisher.VunglePub.init(android.content.Context, java.lang.String) (vungle:33)
at void com.heyzap.sdk.mediation.adapter.VungleAdapter.onStart() (VungleAdapter.java:94)
Rejecting re-init on previously-failed class java.lang.Class<com.vungle.publisher.sn>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;
at void com.vungle.publisher.sk.<init>() (vungle:46)
at java.lang.Object com.vungle.publisher.sl.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rl.get() (vungle:10)
at void com.vungle.publisher.sh.injectMembers(java.lang.Object) (vungle:7)
at void com.vungle.publisher.rw.a(com.vungle.publisher.sf) (vungle:4430)
at void com.vungle.publisher.sf.<init>() (vungle:26)
at java.lang.Object com.vungle.publisher.sg.get() (vungle:8)
at java.lang.Object com.vungle.publisher.rm.get() (vungle:10)
at void com.vungle.publisher.yr.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yq.get() (vungle:8)
at void com.vungle.publisher.yi.injectMembers(java.lang.Object) (vungle:7)
at java.lang.Object com.vungle.publisher.yh.get() (vungle:8)
at void com.vungle.publisher.yo.injectMembers(java.lang.Object) (vungle:8)
at java.lang.Object com.vungle.publisher.yn.get() (vungle:8)
at void com.vungle.publisher.ye.injectMembers(java.lang.Object) (vungle:12)
at java.lang.Object com.vungle.publisher.yd.get() (vungle:8)
at void com.vungle.publisher.qa.injectMembers(java.lang.Object) (vungle:17)
at java.lang.Object com.vungle.publisher.pz.get() (vungle:8)
at void com.vungle.publisher.e.injectMembers(java.lang.Object) (vungle:24)
at java.lang.Object com.vungle.publisher.d.get() (vungle:8)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(com.vungle.publisher.VunglePubBase) (vungle:133)
at void com.vungle.publisher.VunglePubBase_MembersInjector.injectMembers(java.lang.Object) (vungle:18)
at void com.vungle.publisher.rw.a(com.vungle.publisher.VunglePubBase) (vungle:4415)
at boolean com.vungle.publisher.VunglePubBase.init(android.content.Context, java.lang.String) (vungle:99)
at boolean com.vungle.publisher.VunglePub.init(android.content.Context, java.lang.String) (vungle:33)
at void com.heyzap.sdk.mediation.adapter.VungleAdapter.onStart() (VungleAdapter.java:94)

Those errors are not causing the issues you are experiencing, they are always shown by vungle because of it optionally working with older google play game services versions.
You can send logs and apks to support#heyzap.com and we can determine what the problem is for you.

Related

Error while implementing alarm_manager in flutter

Getting an error while implementing alarm_manager in Flutter.
Followed readme of alarm_manager plugin.But its giving me an error
Error PlatformException(error, AlarmManager error:
PluginRegistrantCallback is not set. Did you forget to call
AlarmService.setPluginRegistrant? See the README for instructions
null)
Androidmanifest.xml file;
<code>
<application
tools:replace="android:label"
android:name="io.flutter.app.FlutterApplication"
android:label="xx"
android:icon="#mipmap/ic_launcher">
...
</application>
Application.java;
package com.app.demoapp;
import io.flutter.app.FlutterApplication;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;
import io.flutter.plugins.GeneratedPluginRegistrant;
import io.flutter.plugins.androidalarmmanager.AlarmService;
public class Application extends FlutterApplication implements PluginRegistrantCallback {
#Override
public void onCreate() {
super.onCreate();
AlarmService.setPluginRegistrant(this);
}
#Override
public void registerWith(PluginRegistry registry) {
GeneratedPluginRegistrant.registerWith(registry);
}
}
Mainactivity.java;
package com.app.demoapp;
import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}

How to create an instance of A class that extends Application

I just designed a simple javaFx app. While running it solo works, but when I try to separated and create an instance of it all I get :
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
... 1 more
my code
import javafx.application.Application;
import javafx.stage.Stage;
public class Demo
{
public static void main(String[] args)
{
Demos dm = new Demos();
}
}
class Demos extends Application {
private String args;
private Stage stage;
public Demos()
{
main(args);
start(stage);
}
public void main(String args)
{
this.args=args;
launch(this.args);
}
#Override
public void start(Stage stage)
{
this.stage=stage;
this.stage.setTitle("Simple JavaFX Application");
this.stage.setResizable(false);
this.stage.show();
}
}
Application.launch requires the Application class to be lauched to be public. This is not the case for your Demos class.
Additional Notes
private String args;
private Stage stage;
public Demos()
{
main(args);
...
}
public void main(String args)
{
this.args=args;
...
}
Just assigns the initial value of args to itself, which will always result in args remaining null.
Application.launch is a static method creating the Application instance itself. Calling this form from a instance makes little sense.
If you want to launch a specific Application, pass the Application class to Application.launch:
public static void main(String[] args) {
Application.launch(Demos.class);
}
public Demos extends Application {
private Stage stage;
public Demos(){
}
#Override
public void start(Stage stage) {
this.stage=stage;
this.stage.setTitle("Simple JavaFX Application");
this.stage.setResizable(false);
this.stage.show();
}
}

eclipse JCDE: error in running java card project

I have followed exact instructions from the link eclipse-jcde, and now I have all JCDE features in my eclipse (I'm using eclipse ver 4.3.1). I made a new java card project and added new applet file to it, but when I try to run the project it shows below error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/String
and this is my (empty!) code:
package myPackage;
import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISOException;
public class MyApplet extends Applet {
private MyApplet() {
}
public static void install(byte bArray[], short bOffset, byte bLength)
throws ISOException {
new MyApplet().register();
}
public void process(APDU arg0) throws ISOException {
// TODO Auto-generated method stub
}
}
what should I do?

GWT Incubator PagingScrollTable compile error

I'm trying to implement this example: http://zenoconsulting.wikidot.com/blog:17 in my gwt app but when i try to compile the project i have this error :
Compiling module com.myapp.security.GwtSpringSecurityProject
Validating newly compiled units
Ignored 2 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Scanning for additional dependencies: jar:file:/C:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/AbstractScrollTable.java
Computing all possible rebind results for 'com.google.gwt.gen2.table.client.AbstractScrollTable.Impl'
Rebinding com.google.gwt.gen2.table.client.AbstractScrollTable.Impl
Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.AbstractScrollTable.ImplIE6'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
Scanning for additional dependencies: jar:file:/C:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/FixedWidthTableImpl.java
Computing all possible rebind results for 'com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl'
Rebinding com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl
Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.FixedWidthTableImpl.ImplIE8'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:138)
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1144)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:603)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1771)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:638)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1846)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1513)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:501)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2958)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:608)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[ERROR] <no source info>: public abstract class java.text.DateFormat
extends java.text.Format
/* fields */
protected [unresolved] Unresolved type java.util.Calendar calendar
protected [unresolved] Unresolved type java.text.NumberFormat numberFormat
public static final [unresolved] int ERA_FIELD
public static final [unresolved] int YEAR_FIELD
public static final [unresolved] int MONTH_FIELD
public static final [unresolved] int DATE_FIELD
public static final [unresolved] int HOUR_OF_DAY1_FIELD
public static final [unresolved] int HOUR_OF_DAY0_FIELD
public static final [unresolved] int MINUTE_FIELD
public static final [unresolved] int SECOND_FIELD
public static final [unresolved] int MILLISECOND_FIELD
public static final [unresolved] int DAY_OF_WEEK_FIELD
public static final [unresolved] int DAY_OF_YEAR_FIELD
public static final [unresolved] int DAY_OF_WEEK_IN_MONTH_FIELD
public static final [unresolved] int WEEK_OF_YEAR_FIELD
public static final [unresolved] int WEEK_OF_MONTH_FIELD
public static final [unresolved] int AM_PM_FIELD
public static final [unresolved] int HOUR1_FIELD
public static final [unresolved] int HOUR0_FIELD
public static final [unresolved] int TIMEZONE_FIELD
private static final [unresolved] long serialVersionUID
public static final [unresolved] int FULL
public static final [unresolved] int LONG
public static final [unresolved] int MEDIUM
public static final [unresolved] int SHORT
public static final [unresolved] int DEFAULT
/* methods */
[unresolved] protected void <init>()
[unresolved] public java.lang.Object clone()
[unresolved] public boolean equals(java.lang.Object)
public final java.lang.String format(java.util.Date)
public final java.lang.StringBuffer format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition)
public abstract java.lang.StringBuffer format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition)
[unresolved] private static java.text.DateFormat get(int, int, int, Unresolved type java.util.Locale)
[unresolved] public static Unresolved type java.util.Locale[] getAvailableLocales()
[unresolved] public Unresolved type java.util.Calendar getCalendar()
[unresolved] public static final java.text.DateFormat getDateInstance()
[unresolved] public static final java.text.DateFormat getDateInstance(int)
[unresolved] public static final java.text.DateFormat getDateInstance(int, Unresolved type java.util.Locale)
[unresolved] public static final java.text.DateFormat getDateTimeInstance()
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int)
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int, Unresolved type java.util.Locale)
[unresolved] public static final java.text.DateFormat getInstance()
[unresolved] public Unresolved type java.text.NumberFormat getNumberFormat()
[unresolved] public static final java.text.DateFormat getTimeInstance()
[unresolved] public static final java.text.DateFormat getTimeInstance(int)
[unresolved] public static final java.text.DateFormat getTimeInstance(int, Unresolved type java.util.Locale)
[unresolved] public Unresolved type java.util.TimeZone getTimeZone()
[unresolved] public int hashCode()
[unresolved] public boolean isLenient()
[unresolved] public java.util.Date parse(java.lang.String) throws java.text.ParseException
[unresolved] public abstract java.util.Date parse(java.lang.String, Unresolved type java.text.ParsePosition)
[unresolved] public java.lang.Object parseObject(java.lang.String, Unresolved type java.text.ParsePosition)
[unresolved] public void setCalendar(Unresolved type java.util.Calendar)
[unresolved] public void setLenient(boolean)
[unresolved] public void setNumberFormat(Unresolved type java.text.NumberFormat)
[unresolved] public void setTimeZone(Unresolved type java.util.TimeZone)
/* members */
Unresolved type java.text.DateFormat$DateFormatGetter
Unresolved type java.text.DateFormat$Field
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
[ERROR] at PsTable.java(351): new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate())
org.eclipse.jdt.internal.compiler.ast.MessageSend
[ERROR] at PsTable.java(351): return new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate());
org.eclipse.jdt.internal.compiler.ast.ReturnStatement
[ERROR] at PsTable.java(350): public String getCellValue(Message rowValue);
com.google.gwt.dev.jjs.ast.JMethod
[ERROR] at PsTable.java(348): final class PsTable$DateColumnDefinition extends AbstractColumnDefinition
com.google.gwt.dev.jjs.ast.JClassType
i have simple added the class of this example in my app and i create a new PsTable in my gwt client class.
GWT Incubator's latest release is only compatible with GWT 2.1, and you're apparently using GWT 2.3 or later (the Could not find an exact match rule. Using 'closest' ruleā€¦ was added in 2.3 to support IE9). Add to that that GWT 2.2 breaks binary compatibility of generators (they have to be recompiled against GWT 2.2 or later) and you have a good reason for a failure.
From the GWT Incubator homepage, you should be able to replace PaagingScrollTable uses with GWT 2.4's DataGrid. It's admittedly a much different approach (cells vs. widgets) but it's the way to go nowadays: GWT Incubator is deprecated (for good reasons) and you really shouldn't use it, move away from it if your project used it, and absolutely do not start using it in new projects.
BTW, the article you link to is 3 years old. You can't expect anything good from such ancient code snippets.

Getting errors while following facebook's mobile app guide

When I type this into my class:
package com.greatap;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.facebook.android.*;
import com.facebook.android.Facebook.*;
public class MyGreatActivity extends Activity {
Facebook facebook = new Facebook("YOUR_APP_ID");
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
facebook.authorize(this, new DialogListener() {
#Override
public void onComplete(Bundle values) {}
#Override
public void onFacebookError(FacebookError error) {}
#Override
public void onError(DialogError e) {}
#Override
public void onCancel() {}
});
}
#Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
facebook.authorizeCallback(requestCode, resultCode, data);
}
}
I get these errors:
FacebookError cannot be resolved to a type,
Syntax error on token "*", delete this token,
The import com.facebook.android.Facebook cannot be resolved,
The method onCancel() of type new DialogListener(){} must override a superclass method,
The method onComplete(Bundle) of type new DialogListener(){} must override a superclass method,
Facebook cannot be resolved to a type,
DialogListener cannot be resolved to a type,
DialogError cannot be resolved to a type.
If anyone could please help me find out what I did wrong, I would appreciate it! Thanks in advance!
change project preference to use Java 1.6 instead of 1.5. This error is because of using Java 1.5.
link: 'Must Override a Superclass Method' Errors after importing a project into Eclipse