The import com.google.maps.android.R cannot be resolved - java

I'm trying to make an Android app with Google Maps feature. I have setup everything, and imported all the required libraries, etc.
But, I'm getting this annoying error, which I really don't understand what is wrong, I googled it but couldn't find any solution for this so I thought I should post here.
I'm using Android Maps Utils
https://github.com/googlemaps/android-maps-utils
and I'm getting this error: The import com.google.maps.android.R cannot be resolved
This error is coming in two files of Android Maps Utils.
DefaultClusterRenderer.java (Package: com.google.maps.android.clustering.view)
IconGenerator.java (Package: com.google.maps.android.ui)
Any help to resolve this issue will be highly appreciated. Thanks!

adding support library will solve this problem. select your project, go to android tools and then add support library. And then your error should not show there ! :)

I had the same problem. Right click on Project/properties/javaBuildPath Projects -> add library

Related

Using the Plaid API on Android

I am trying to make an android application that uses the Plaid API. I am using the java bindings found here: https://github.com/plaid/plaid-java.
I am trying run the example code found on that github page, but I'm struggling. The problem lies in the dependencies.
I have these in my build.gradle:
compile 'com.plaid:plaid-java:0.2.12'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
It took a good amount of searching to find the correct Apache HttpClient library that would work, because I was getting ClassNotFoundExcptions when I first tried this.
Now I'm getting a VerifyError:
java.lang.VerifyError: Verifier rejected class com.plaid.client.http.ApacheHttpClientHttpDelegate due to bad method com.plaid.client.http.HttpResponseWrapper com.plaid.client.http.ApacheHttpClientHttpDelegate.doPatch(com.plaid.client.http.PlaidHttpRequest, java.lang.Class) (declaration of 'com.plaid.client.http.ApacheHttpClientHttpDelegate' appears in
I am struggling to resolve these problems and can't find any examples of the Plaid API working on Android. If anyone can provide even the slightest bit of help, it would be greatly appreciated.
Thank you

Issues with import of microsoft.exchange.webservices

I'm trying to use microsoft's exchange webservices in an Android application in Android Studio, but the import of the library is not working.
When i type:
import microsoft.exchange.webservices.data.*;
microsoft is underlined in red and I'm getting the error: cannot resolve symbol 'microsoft'.
I've followed this guide for installing ews java api, but I seem to be fudging up somewhere.
https://github.com/OfficeDev/ews-java-api
Anyone that knows of a quick fix or maybe what I've done wrong?
Thanks for all and any help.
Found the answer:
Copied the ews-java-api-2.0-SNAPSHOT.jar into the /lib/-folder of the Android Project.

Why do I have so many errors from the BaseGameUtils library?

I am following this link
https://developers.google.com/games/services/android/init
With trying to add leaderboards to an android app but after I follow step 1 and it is added it throws up over 100 errors and a Jar mismatch! Fix your dependencieserror, that I understand why.
I have added the google play library no problem and gotten adverts to work by following Google's documentation but the leaderboard documentation seems to be sending me all over the place and not helping at all.
Could someone please shed some light on this, thanks!
Ok because I am still new to Android and Eclipse I had added the reference to the BaseGameUtils in the properties for the project but you have to add the Google play services as a reference for the BaseGameUtils by right clicking and selecting properties then add it as you did for the main project.

Facebook SDK crashes google-play-services-lib if imported as existing Android source code

I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:
The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.
Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)
SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)

error calling cvEigenDecomposite and cvCreateMat functions in opencv using Opencv in java

I have been trying to implement face recognition in java using Opencv and Javacv libraries in eclipse. I searched for coding examples on this topic and i found a link showing that. But my problem is that there are functions like cvEigenDecomposite and cvCreateMat used in the example code. But cvEigenDecomposite generates error and also the function cvCreateMat produces error when taking CV_32FC1 as the last parameter. Does anyone have any idea on this? Has there been an alternative developed for this in the recent versions or am I missing something?
Please help me find an answer to this. Any help will be appreciated.

Categories

Resources