I just tried to Import the GreenDroid-Librarys for my new Android Application.
Now, I encounter a confusing Error. I first Import the GreenDroid-Core Library and everything is fine.
But when I, after that, try to Import the GreenDroid-GoogleAPI Library into my workspace I get a java.lang.StackOverflowError.
The detailed Error is as followed:
Failed to call IProjectListener.projectOpened
java.lang.StackOverflowError
I´m not sure if this is a problem with my Eclipse or with the Library per se.
Related
I have implemented Capacitor plugin for Firebase Crashlytics in my Ionic 5 app following this doc. I completed all the steps but getting the following error.
error: package com.getcapacitor.community.firebasecrashlytic does not exist
^
This error is coming when Android Studio is trying to build the project. The error is comming the the MainActivity.java class in line import com.getcapacitor.community.firebasecrashlytic.FirebaseCrashlytics;
In short
There is a typo in README. I managed to fix it by adding s in firebasecrashlytic.
Just change import com.getcapacitor.community.firebasecrashlytic.FirebaseCrashlytics; to import com.getcapacitor.community.firebasecrashlytics.FirebaseCrashlytics;
Some fun
There was an issue related to this "bug". The issue was closed without fixing the cause.
There are already a few pull requests (like this one) waiting for approval.
I have a problem following this tutorial.
It's a tutorial to make a Soundboard in Android Studio 3.6.3
The problem is in this line of code:
import androidx.appcompat.app.AlertController;
And this is the error:
error: AlertController is not public in androidx.appcompat.app; cannot be accessed from outside package
import androidx.appcompat.app.AlertController;
Perhaps the problem is here: At 6:27, the creator of the tutorial adds the recyclerview support library using this old code:
compile: 'com.android.support:recyclerview-v7:23.4.0'
I used this code instead:
implementation "androidx.recyclerview:recyclerview:1.1.0"
Can somebody help me solve the error, please?
I have eclipse and i have followed this link:
but still the import "WatchViewStub" and "DismissOverlayView" cannot be resolved
Note ElizaChat sample wearable app is working for me .
so why WatchViewStub sample is not working ?
what's missing ?
I am developing for Android 4+ with Eclipse Juno ADT bundle + Google Plugin for Eclipse.
I need to programmatically log into a google account to use the Google Calendar API. For
this I am making use of account manager. I get the following error:
05-05 13:28:55.605: E/AndroidRuntime(11186): FATAL EXCEPTION: main
05-05 13:28:55.605: E/AndroidRuntime(11186): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker
05-05 13:28:55.605: E/AndroidRuntime(11186): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent(GoogleAccountCredential.java:171)
05-05 13:28:55.605: E/AndroidRuntime(11186): ...
Here is the code that causes it:
GoogleAccountCredential credential;
credential = GoogleAccountCredential.usingOAuth2(this, CalendarScopes.CALENDAR);
chooseAccount();
private void chooseAccount() {
startActivityForResult(credential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);
}
I have searched stackoverflow for solutions. The libs directory contains the calendar
library files for eclipse I imported via google plugin for eclipse (which also put
there the authentication etc... libraries):
android-support-v4.jar
google-api-client-1.14.1-beta.jar
google-api-client-android-1.14.1-beta.jar
google-api-services-calendar-v3-rev41-1.14.2-beta.jar
google-http-client-1.14.1-beta.jar
google-http-client-android-1.14.1-beta.jar
google-http-client-gson-1.14.1-beta.jar
google-http-client-jackson-1.14.1-beta.jar
google-http-client-jackson2-1.14.1-beta.jar
google-oauth-client-1.14.1-beta.jar
gson-2.1.jar
jackson-core-2.1.3.jar
jackson-core-asl-1.9.11.jar
jsr305-1.3.9.jar
These however do not seem to include
com.google.android.gms.common.AccountPicker
If I import this in my code the import line of code is flagged as an error.
So what's up. I've copied this code from the Google Calendar Sample where it
runs just fine:
http://samples.google-api-java-client.googlecode.com/hg/calendar-android-sample/
That code has exactly the same libs except:
calendar lib is rev33 instead of rev41
jackson and jackson-asl libraries are missing
.properties file for each library file present in sample code but not in my code
So this should not be the problem. However,
looking in the imports section of the code, the google calendar sample code has:
import com.google.android.gms.common.GooglePlayServicesUtil;
but if I try to insert this line of code in my code it is tagged as an error
saying the import com.google.android.gms.common.GooglePlayServicesUtil
cannot be resolved.
This post
java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker
says they were able to
import com.google.android.gms.common.AccountPicker;
But I'd like to know what library that came from.
I even tried looking in the original android calendar sample for the
library from which I can include com.google.android.gms.common.*
by inspecting one file at a time but could not find it. How
is it possible?
What am I doing wrong?
Thanks very very much for all your help.
OK, I've found out what I was missing.
Ensure you have downloaded the Android SDK Services -> Extras -> Google Play services
Follow the instructions provided by the following link
to add the google-play-services-lib library to your project:
http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
Best Regards
I've run into a similar problem lately. My app (not in production yet) would suddenly (since the beginning of May) start throwing uncatchable 'NoClassDefFoundError' error when calling
GoogleAccountCredential.usingOAuth2(this, DriveScopes.DRIVE_FILE)
method. It was happening randomly, usually first time in the morning. I could fix it by re-installing my Google account. Not a good solution for production, though. I've spent frustrating couple of hours trying to resolve it until I finally realized I have another app that does not have the same problem in the same code sequence. So I diff-ed both of them and realized that the "good" one had a different sequence of entries in 'Package Explorer->Project->Properties->Java Build Path' The 'good' one had
'google-play-services.jar' BEFORE
'android-support-v4.jar',
where the 'bad' one had it backwards. So I switched the sequence (using UP, DOWN buttons in the dialog) and it seems to solve the problem. Yet another WT... ? moment! Does anybody have an opinion on this?
and thanks for your help
I download the example of android book android 4 application develop, now I import the project but i see i have in console this error
[2012-07-31 12:07:13 - PA4AD_Ch09_MyService] Unable to resolve target 'android-15'
and in the all class i have this:
`import android.app.Activity; // for all import pachage`
I have this error: The import android cannot be resolved
I see this error for all import package
if i create a new project all work well.
when i used android sdk tool 15 all work well, now i don't know to do, can you help me?
best regads
Antonio
Go to Window menu -> preferance -> select Android --> check SDK location