java错误:TitleChanger is notjava abstract staticand does not overridejava abstract staticmethod 这个怎么修改啊???

1. 获取源代码
& &方式一:从官网&直接下载,官网提供了Binary 和 Source Code两种下载方式,要研究tomcat源代码,选择source code 方式下载
& &方式二:利用svn获取源代码,先安装svn,再新建目录tomcat7, 接着在目录里执行以下命令
svn&co&http:
& & tags目录下有不同版本的tomcat 源码,这里下载的版本是7.0.35
2. 将源码导入eclipse
& & tomcat的源码是利用ant来创建和管理的。先安装ant,再执行ant
ide-eclipse,该命令执行成功后,会在tomcat7目录下生产.project和.classpath两个文件,即成为eclipse工程
了。这样你就可以将tomcat源码导入eclipse了。
& & &执行ant ide-eclipse时报错:
BUILD&FAILED&build.xml:2361:&The&following&error&occurred&while&executing&this&line:&&
BUILD&FAILED&build.xml:2449:&Compile&&see&the&compiler&error&output&for&details.&&
查看编译的错误日志为:
&build-tomcat-dbcp:&&
&&&&&[copy]&Copying&64&files&to&E:\usr\share\java\tomcat7-deps\dbcp&&
&&&&&[move]&Moving&64&files&to&E:\usr\share\java\tomcat7-deps\dbcp\src\java\org\apache\tomcat\dbcp&&
&&&&[javac]&Compiling&64&source&files&to&E:\usr\share\java\tomcat7-deps\dbcp\classes&&
&&&&[javac]&warning:&[options]&bootstrap&class&path&not&set&in&conjunction&with&-source&1.6&&
&&&&[javac]&E:\usr\share\java\tomcat7-deps\dbcp\src\java\org\apache\tomcat\dbcp\dbcp\BasicDataSource.java:53:&error:&Bas&&
icDataSource&is&not&abstract&and&does&not&override&abstract&method&getParentLogger()&in&CommonDataSource&&
&&&&[javac]&public&class&BasicDataSource&implements&DataSource&{&&
&&&&[javac]&&&&&&&&^&&
&&&&[javac]&E:\usr\share\java\tomcat7-deps\dbcp\src\java\org\apache\tomcat\dbcp\dbcp\DelegatingStatement.java:46:&error:&&
&DelegatingStatement&is&not&abstract&and&does&not&override&abstract&method&isCloseOnCompletion()&in&Statement&&
&&&&[javac]&public&class&DelegatingStatement&extends&AbandonedTrace&implements&Statement&{&&
&&&&[javac]&&&&&&&&^&&
&&&&[javac]&E:\usr\share\java\tomcat7-deps\dbcp\src\java\org\apache\tomcat\dbcp\dbcp\DelegatingPreparedStatement.java:57&&
:&error:&DelegatingPreparedStatement&is&not&abstract&and&does&not&override&abstract&method&isCloseOnCompletion()&in&Stat&&
根据日志错误推测,依赖的dbcp相关的jar版本不对。本机安装的jdk版本是1.7的,于是在本机又装了一个1.6的jdk,并修改相关环境变量让JAVA_HOME指向jdk 1.6目录。再次执行ant ide-eclipse得到了
&BUILD SUCCESSFUL
Total time: 2 minutes 57 seconds
也注意到 build-tomcat-dbcp的构建日志更新为:
build-tomcat-dbcp:&&
&&&&&[copy]&Copying&64&files&to&E:\usr\share\java\tomcat7-deps\dbcp&&
&&&&&[move]&Moving&64&files&to&E:\usr\share\java\tomcat7-deps\dbcp\src\java\org\apache\tomcat\dbcp&&
&&&&[javac]&Compiling&64&source&files&to&E:\usr\share\java\tomcat7-deps\dbcp\classes&&
&&&&[javac]&注意:某些输入文件使用或覆盖了已过时的&API。&&
&&&&[javac]&注意:要了解详细信息,请使用&-Xlint:deprecation&重新编译。&&
&&&&[javac]&注意:某些输入文件使用了未经检查或不安全的操作。&&
&&&&[javac]&注意:要了解详细信息,请使用&-Xlint:unchecked&重新编译。&&
&&&&&&[jar]&Building&jar:&E:\usr\share\java\tomcat7-deps\dbcp\tomcat-dbcp.jar&&
&&&&&&[jar]&Building&jar:&E:\usr\share\java\tomcat7-deps\dbcp\tomcat-dbcp-src.jar&&
因此,该问题可总结为:tomcat源码依赖的jdk版本为1.6及其以下,使用jdk1.7会导致构建失败。
3. &在build path里添加jar包,解决编译问题
& & 导入eclipse后,会发现工程tomcat7有一个红色的惊叹号,这是因为依赖的jar包没有添加到build path里导致的编译错误。参考博客&&中的第三步。
& & 遇到的另外问题,org.apache.naming.factory.webservices包下的两个类ServiceProxy,ServiceRefFactory依然有错,无法识别
import&javax.xml.rpc.S&&
import&javax.xml.rpc.ServiceE&&
import&javax.wsdl.D&&
import&javax.wsdl.P&&
import&javax.wsdl.extensions.ExtensibilityE&&
import&javax.wsdl.extensions.soap.SOAPA&&
import&javax.wsdl.factory.WSDLF&&
import&javax.wsdl.xml.WSDLR&&
这些类。本机依然缺少jar包,百度了下发现缺少一个web service的开发工具包&axis-bin-1_4.zip。 下载后,添加到build path里解决。
& &题外话:ant没有maven用起来方便,maven可以管理依赖的jar,会自动从maven仓库里下载依赖,无需手动下载jar和添加build path
& & & &参考博客&中的第四步即可
阅读(...) 评论()java - &anonymous& is not abstract and does not override abstract method onFailure(int,Header[],byte[],Throwable) in AsyncHttpResponseHandler - Stack Overflow
Learn, Share, Build
Each month, over 50 million developers come to Stack Overflow to learn, share their knowledge, and build their careers.
Join the world’s largest developer community.
Display name
Email address
By registering, you agree to the
Evening everyone. I REALLY need some help. I've had some issues in the past getting apps to compile but this current situation is nearly enough to make me want to NOT quit my day job.
I have an Android application that was running perfectly fine in eclipse. However, ever since the upgrade last week i have not been able to get it back running. Its been so bad that I decided to import the application to the Android Studio.
Now I have imported the application to Android studio,which i do like btw, and I have an error that I just can't seem to figure out.
If I compile the application w/o "android-async-http-1.4.5.jar" I get errors stating:
Error:(29, 30) error: package com.loopj.android.http does not exist
for each area in the app where there is an Async function is called. However, once I add "android-sync-http-1.4.5.jar" I get the following error throughout the app each time the function is called:
Error:(74, 104) error: &anonymous com.peekatucorp.peekatu.ChatActivity$1& is not abstract and does not override abstract method onFailure(int,Header[],byte[],Throwable) in AsyncHttpResponseHandler
Error:(75, 13) error: method does not override or implement a method from a supertype
Please help. I dont know what Im missing.
ChatActivity.java
package com.peekatucorp.
import android.app.A
import android.content.C
import android.content.I
import android.content.SharedP
import android.os.B
import android.util.L
import android.view.KeyE
import android.view.V
import android.view.View.OnKeyL
import android.view.WindowM
import android.view.inputmethod.InputMethodM
import android.widget.AdapterV
import android.widget.AdapterView.OnItemClickL
import android.widget.B
import android.widget.EditT
import android.widget.LinearL
import android.widget.ListV
import com.loopj.android.http.AsyncHttpC
import com.loopj.android.http.AsyncHttpResponseH
import com.loopj.android.http.RequestP
import org.w3c.dom.D
import org.w3c.dom.E
import org.w3c.dom.NodeL
import java.util.R
public class ChatActivity extends Activity {
private com.peekatucorp.peekatu.DiscussArrayA
private ListV
private LoremI
private EditText editText1;
private static R
private String selected_
private String last_
private Document responseD
@Override protected void onResume() {
super.onResume(); // setText() here
Log.v("response", "request");
Intent i = this.getIntent();
String type = i.getExtras().getString("type");
Log.v("response ", "messages type "+type);
if(type.equalsIgnoreCase("1"))
getChatMessages();
else if(type.equalsIgnoreCase("2"))
getInboxMessages();
else if(type.equalsIgnoreCase("3"))
getUserMessages(i.getExtras().getString("conv_user"));
public void getUserMessages(final String forUserID){
final SharedPreferences preferences = this.getSharedPreferences("MyPreferences", MODE_PRIVATE);
AsyncHttpClient
client = new AsyncHttpClient();
RequestParams params = new RequestParams();
params.put("action", "get");
params.put("room", preferences.getString("selected_room", "Lobby"));
params.put("dist", "0");
params.put("pmsgid", "1");
params.put("msgid", "9");
params.put("private_toid", forUserID);
params.put("webversion", "1");
params.put("censor", "0");
params.put("email", preferences.getString("loggedin_user", ""));
/* pmsgid:906588*/
params.put("profile_picture", new File("pic.jpg")); // Upload a File
params.put("profile_picture2", someInputStream); // Upload an InputStream
params.put("profile_picture3", new ByteArrayInputStream(someBytes)); // Upload some bytes
client.post("/apiweb/messagetest.php",params, new AsyncHttpResponseHandler() {
public void onSuccess(String response) {
Log.v("response", response);
XMLParser parser = new XMLParser();
Document doc = parser.getDomElement(response); // getting DOM element
NodeList nl = doc.getElementsByTagName("PMESSAGE");
Log.v("response ", "messages count "+nl.getLength());
// looping through all item nodes &item&
for (int i = 0; i & nl.getLength(); i++) {
// creating new HashMap
Element e = (Element) nl.item(i);
Log.v("response ", "messages
"+parser.getValue(e, "TEXT"));
// adapter.add(new OneComment(true, "OKOKOK"));
Boolean dir =
if(!parser.getValue(e, "USERID").equalsIgnoreCase(forUserID)){
adapter.add(new OneComment(dir,
parser.getValue(e, "TEXT"),
parser.getValue(e, "USERID"),
parser.getValue(e, "ALIAS"),
parser.getValue(e, "GENDER"),
parser.getValue(e, "PIC"),
parser.getValue(e, "TDATE"),
parser.getValue(e, "ONLINE"),
parser.getValue(e, "MSGPIC")));
// adding HashList to ArrayList
// menuItems.add(map);
lv.setSelection(adapter.getCount() - 1);
build.gradle
build.gradle
apply plugin: 'com.android.application'
compileSdkVersion 19
buildToolsVersion '20.0.0'
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
defaultConfig {
applicationId "com.peekatucorp.peekatu"
minSdkVersion 8
targetSdkVersion 19
buildTypes {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
dependencies {
compile 'com.android.support:support-v4:20.0.0+'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:gridlayout-v7:+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:20.0.0+'
compile files('libs/apache-mime4j-0.6.jar')
compile files('libs/httpclient-4.0.1.jar')
compile files('libs/httpcore-4.0.1.jar')
compile files('libs/httpmime-4.0.1.jar')
compile files('libs/mobclix.jar')
compile files('libs/universal-image-loader-1.8.4-with-sources.jar')
compile files('libs/urlimageviewhelper-1.0.4.jar')
compile files('libs/gcm.jar')
compile files('libs/android-async-http-1.4.5.jar')
I need help. I have been trying to get this app to run again for the pass 72hrs. Someone please assist me. Thank you in advanced. I have read about every resource I could find online and now Im at a dead end.
You have just to replace org.apache.http.Header by cz.msebera.android.httpclient.Header in the success and failure methods header
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledandroid - how to fix java.lang.AbstractMethodError: abstract method not implemented - Stack Overflow
Learn, Share, Build
Each month, over 50 million developers come to Stack Overflow to learn, share their knowledge, and build their careers.
Join the world’s largest developer community.
Display name
Email address
By registering, you agree to the
I have this activity and i got the crash saied java.lang.AbstractMethodError: abstract method not implemented how can i solve it?
it is like i make the activity impelements of something not implemented but i don't know how to fix it!
i faced this problem for many times and i don't know how to solve it!!
public class SelectEndPoint extends AppCompatActivity implements
OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, com.google.android.gms.location.LocationListener {
private GoogleMap mM
private GoogleApiClient mGoogleApiC
private final static int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
private static String TAG = "MAP LOCATION";
Context mC
TextView mLocationMarkerT
private LatLng mCenterLatL
* Receiver registered with this activity to get the response from FetchAddressIntentService.
private AddressResultReceiver mResultR
* The formatted location address.
protected String mAddressO
protected String mAreaO
protected String mCityO
protected String mStateO
EditText mLocationA
TextView mLocationT
private static final int REQUEST_CODE_AUTOCOMPLETE = 1;
Toolbar mT
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.select_end_point);
mContext =
// Obtain the SupportMapFragment and get notified when the map is ready to be used.
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mLocationMarkerText = (TextView) findViewById(R.id.locationMarkertext);
mToolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setTitle(getResources().getString(R.string.app_name));
mapFragment.getMapAsync(this);
mResultReceiver = new AddressResultReceiver(new Handler());
if (checkPlayServices()) {
// If this check succeeds, proceed with normal processing.
// Otherwise, prompt user to get valid Play Services APK.
if (!AppUtils.isLocationEnabled(mContext)) {
// notify user
AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
dialog.setMessage("Location not enabled!");
dialog.setPositiveButton("Open location settings", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface paramDialogInterface, int paramInt) {
Intent myIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(myIntent);
dialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface paramDialogInterface, int paramInt) {
// TODO Auto-generated method stub
dialog.show();
buildGoogleApiClient();
Toast.makeText(mContext, "Location not supported in this device", Toast.LENGTH_SHORT).show();
* Manipulates the map once available.
* This callback is triggered when the map is ready to be used.
* This is where we can add markers or lines, add listeners or move the camera. In this case,
* we just add a marker near Sydney, Australia.
* If Google Play services is not installed on the device, the user will be prompted to install
* it inside the SupportMapFragment. This method will only be triggered once the user has
* installed Google Play services and returned to the app.
public void onMapReady(GoogleMap googleMap) {
Log.d(TAG, "OnMapReady");
mMap = googleM
mMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {
public void onCameraChange(CameraPosition cameraPosition) {
Log.d("Camera postion change" + "", cameraPosition + "");
mCenterLatLong = cameraPosition.
mMap.clear();
Location mLocation = new Location("");
mLocation.setLatitude(mCenterLatLong.latitude);
mLocation.setLongitude(mCenterLatLong.longitude);
startIntentService(mLocation);
mLocationMarkerText.setText("Lat : " + mCenterLatLong.latitude + "," + "Long : " + mCenterLatLong.longitude);
} catch (Exception e) {
e.printStackTrace();
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
public void onRequestPermissionsResult(int requestCode, String[] permissions,
int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
//mMap.setMyLocationEnabled(true);
mMap.getUiSettings().setMyLocationButtonEnabled(true);
// Add a marker in Sydney and move the camera
LatLng sydney = new LatLng(-34, 151);
mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
public void onConnected(Bundle bundle) {
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
public void onRequestPermissionsResult(int requestCode, String[] permissions,
int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
Location mLastLocation = LocationServices.FusedLocationApi.getLastLocation(
mGoogleApiClient);
if (mLastLocation != null) {
changeMap(mLastLocation);
Log.d(TAG, "ON connected");
LocationServices.FusedLocationApi.removeLocationUpdates(
mGoogleApiClient, this);
} catch (Exception e) {
e.printStackTrace();
LocationRequest mLocationRequest = new LocationRequest();
mLocationRequest.setInterval(10000);
mLocationRequest.setFastestInterval(5000);
mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
LocationServices.FusedLocationApi.requestLocationUpdates(
mGoogleApiClient, mLocationRequest, this);
} catch (Exception e) {
e.printStackTrace();
public void onConnectionSuspended(int i) {
Log.i(TAG, "Connection suspended");
mGoogleApiClient.connect();
public void onLocationChanged(Location location) {
if (location != null)
changeMap(location);
LocationServices.FusedLocationApi.removeLocationUpdates(
mGoogleApiClient, this);
} catch (Exception e) {
e.printStackTrace();
public void onConnectionFailed(ConnectionResult connectionResult) {
protected synchronized void buildGoogleApiClient() {
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
protected void onStart() {
super.onStart();
mGoogleApiClient.connect();
} catch (Exception e) {
e.printStackTrace();
protected void onStop() {
super.onStop();
} catch (RuntimeException e) {
e.printStackTrace();
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
mGoogleApiClient.disconnect();
private boolean checkPlayServices() {
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
GooglePlayServicesUtil.getErrorDialog(resultCode, this,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
//finish();
private void
changeMap(Location location) {
Log.d(TAG, "Reaching map" + mMap);
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
// TODO: Consider calling
ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
public void onRequestPermissionsResult(int requestCode, String[] permissions,
int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
// check if map is created successfully or not
if (mMap != null) {
mMap.getUiSettings().setZoomControlsEnabled(false);
LatLng latL
latLong = new LatLng(location.getLatitude(), location.getLongitude());
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(latLong).zoom(19f).tilt(70).build();
mMap.setMyLocationEnabled(true);
mMap.getUiSettings().setMyLocationButtonEnabled(true);
mMap.animateCamera(CameraUpdateFactory
.newCameraPosition(cameraPosition));
mLocationMarkerText.setText("Lat : " + location.getLatitude() + "," + "Long : " + location.getLongitude());
startIntentService(location);
Toast.makeText(getApplicationContext(),
"Sorry! unable to create maps", Toast.LENGTH_SHORT)
* Receiver for data sent from FetchAddressIntentService.
class AddressResultReceiver extends ResultReceiver {
public AddressResultReceiver(Handler handler) {
super(handler);
* Receives data sent from FetchAddressIntentService and updates the UI in MainActivity.
protected void onReceiveResult(int resultCode, Bundle resultData) {
// Display the address string or an error message sent from the intent service.
mAddressOutput = resultData.getString(AppUtils.LocationConstants.RESULT_DATA_KEY);
mAreaOutput = resultData.getString(AppUtils.LocationConstants.LOCATION_DATA_AREA);
mCityOutput = resultData.getString(AppUtils.LocationConstants.LOCATION_DATA_CITY);
mStateOutput = resultData.getString(AppUtils.LocationConstants.LOCATION_DATA_STREET);
displayAddressOutput();
// Show a toast message if an address was found.
if (resultCode == AppUtils.LocationConstants.SUCCESS_RESULT) {
showToast(getString(R.string.address_found));
* Updates the address in the UI.
protected void displayAddressOutput() {
mLocationAddressTextView.setText(mAddressOutput);
if (mAreaOutput != null)
// mLocationText.setText(mAreaOutput+ "");
mLocationAddress.setText(mAddressOutput);
//mLocationText.setText(mAreaOutput);
} catch (Exception e) {
e.printStackTrace();
* Creates an intent, adds location data to it as an extra, and starts the intent service for
* fetching an address.
protected void startIntentService(Location mLocation) {
// Create an intent for passing to the intent service responsible for fetching the address.
Intent intent = new Intent(this, FetchAddressIntentService.class);
// Pass the result receiver as an extra to the service.
intent.putExtra(AppUtils.LocationConstants.RECEIVER, mResultReceiver);
// Pass the location data as an extra to the service.
intent.putExtra(AppUtils.LocationConstants.LOCATION_DATA_EXTRA, mLocation);
// Start the service. If the service isn't already running, it is instantiated and started
// (creating a process for it if needed); if it is running then it remains running. The
// service kills itself automatically once all intents are processed.
startService(intent);
/* private void openAutocompleteActivity() {
// The autocomplete activity requires Google Play Services to be available. The intent
// builder checks this and throws an exception if it is not the case.
Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN)
.build(this);
startActivityForResult(intent, REQUEST_CODE_AUTOCOMPLETE);
} catch (GooglePlayServicesRepairableException e) {
// Indicates that Google Play Services is either not installed or not up to date. Prompt
// the user to correct the issue.
GoogleApiAvailability.getInstance().getErrorDialog(this, e.getConnectionStatusCode(),
0 /* requestCode *//*).show();
} catch (GooglePlayServicesNotAvailableException e) {
// Indicates that Google Play Services is not available and the problem is not easily
// resolvable.
String message = "Google Play Services is not available: " +
GoogleApiAvailability.getInstance().getErrorString(e.errorCode);
Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
* Called after the autocomplete activity has finished to return its
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// Check that the result was from the autocomplete widget.
if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {
if (resultCode == RESULT_OK) {
the error is :
java.lang.AbstractMethodError: abstract method not implemented
at com.google.mon.api.Api$zza.zza(Unknown Source)
at com.google.mon.api.GoogleApiClient$Builder.zza(Unknown Source)
at com.google.mon.api.GoogleApiClient$Builder.zzarg(Unknown Source)
at com.google.mon.api.GoogleApiClient$Builder.build(Unknown Source)
at com.wneet.white.services.SelectEndPoint.buildGoogleApiClient(SelectEndPoint.java:252)
at com.wneet.white.services.SelectEndPoint.onCreate(SelectEndPoint.java:118)
at android.app.Activity.performCreate(Activity.java:5581)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2483)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2578)
at android.app.ActivityThread.access$900(ActivityThread.java:170)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5727)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
I had the a similar problem
FATAL EXCEPTION: IntentService[SyncService]
Process: ie.eureka.moveitmobileandroid, PID: 22234
java.lang.AbstractMethodError: abstract method "java.util.List .manager.interfaces.WalkAroundCheckAnswers_YesNoManagerInterface.getListOfWalkAroundCheckAnswers_YesNoFromAttempt(ie.eureka.moveitmobileandroid.data.dao.WalkAroundCheckAttempt)"
at ie.eureka.moveitmobileandroid.services.networksync.SyncWalkAroundCheckAttempts.syncWithDatabase(SyncWalkAroundCheckAttempts.java:94)
at ie.eureka.moveitmobileandroid.services.networksync.SyncWalkAroundCheckAttempts.sync(SyncWalkAroundCheckAttempts.java:57)
at ie.eureka.moveitmobileandroid.services.SyncService.onHandleIntent(SyncService.java:32)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
a clean of the project fixed it for me
I had a similar problem too. In my case I had to change the following:
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta3'
compile 'com.google.code.gson:gson:2.6.1'
compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.google.code.gson:gson:2.6.1'
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
it helped me to avoid the error.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
The week's top questions and answers
Important community announcements
Questions that need answers
By subscribing, you agree to the
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 java中abstract 的文章

 

随机推荐