I can't build my android project, it says that com.google.android.maps does not exist. It is way strange because in my project in libraries I have them. I rebuild the build.xml. The import com.google.android.maps.MapActivity; is not marked as error. What should I do?
Handling Resources...
Generating resource IDs...
C:\android-sdk-windows\tools\ant\build.xml:600: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Compiling 13 source files to C:\Users\iie\Documents\NetBeansProjects\AndroidApplication3\bin\classes
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:10: error: package com.google.android.maps does not exist
import com.google.android.maps.MapActivity;
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:16: error: cannot find symbol
public class MapMapa extends MapActivity {
symbol: class MapActivity
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:21: error: cannot find symbol
super.onCreate(icicle);
symbol: variable super
location: class MapMapa
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:23: error: cannot find symbol
setContentView(R.layout.map);
symbol: method setContentView(int)
location: class MapMapa
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:19: error: method does not override or implement a method from a supertype
#Override
C:\Users\bla\Documents\NetBeansProjects\AndroidApplication3\src\menu\dot\MapMapa.java:26: error: method does not override or implement a method from a supertype
#Override
6 errors
C:\android-sdk-windows\tools\ant\build.xml:580: The following error occurred while executing this line:
C:\android-sdk-windows\tools\ant\build.xml:600: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
Make sure you
install the Google APIs in your Android SDK (this means the "Google APIs" choice instead of the "Android X.x" one)
specify to use this library in your manifest XML:
<uses-library android:name="com.google.android.maps" />
choose "Google API" as your "Build Target", not the "Android X.x" one.
FYI, when testing with the emulator AVD, you need to launch the "Google APIs" version instead of the "Android X.x" one.
ok, finally I managed to sort it out:
here is a link with everything:
http://code.davidjanes.com/blog/2009/11/13/18-hours-of-jar-hell-with-android-google-maps/
sorry for answering my own question
Related
I have updated exoplayer and the exoplayer-extension-ima version from 2.11.1 to the latest one (2.18.2).
Checking the release notes I just saw this on the version 2.18.1 section:
This release corresponds to the AndroidX media3 1.0.0-beta02 release.
So I thought I had to upgrade my exoplayer imports from com.google.android.exoplayer2 to androidx.media3 and I followed this migration guide downloading the script for the 2.18.2 version and changing the LEGACY_PEER_VERSION variable from 2.18.1 to 2.18.2 and executing it withot getting any relevant error.
However after running the assembleRelease gradle script I'm facing the next errors:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'extension-level'. One of '{layoutlib}' is expected.
cvc-complex-type.2.4.d: Invalid content was found starting with element 'extension-level'. No child element is expected at this point.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{codename, tag}' is expected.
:myproject.exoplayer:compileReleaseJavaWithJavac
ExoPlayerListener.java
package com.google.android.exoplayer2.ext.ima does not exist
cannot find symbol class TrackGroupArray
package com.google.android.exoplayer2.trackselection does not exist
cannot find symbol class DefaultEventListener
cannot find symbol class ImaAdsLoader
cannot find symbol class ImaAdsLoader
cannot find symbol class TrackGroupArray
cannot find symbol class TrackSelectionArray
cannot find symbol class ImaAdsLoader
method does not override or implement a method from a supertype
method does not override or implement a method from a supertype
method does not override or implement a method from a supertype
method does not override or implement a method from a supertype
cannot find symbol variable super
On my ExoplayerListener.java some exoplayer imports changed (placing the mouse over them displays a Cannot resolve symbol 'media3' error)
import androidx.media3.common.Player;
import androidx.media3.common.TrackGroupArray;
And some don't (placing the mouse over them displays a Cannot resolve symbol 'android' error)
import com.google.android.exoplayer2.ext.ima.ImaAdsLoader;
import com.google.android.exoplayer2.trackselection.TrackSelectionArray;
Am I doing something wrong, or is it perhaps that my steps towards the migration aren't correct?
Mention that I haven't changed anything on the code, just changing the below imports on the build.gradle file from:
api 'com.google.android.exoplayer:exoplayer:2.11.1'
api 'com.google.android.exoplayer:extension-ima:2.11.1'
to:
api 'com.google.android.exoplayer:exoplayer:2.18.2'
api 'com.google.android.exoplayer:extension-ima:2.18.2'
And after the migration script changed to:
api 'androidx.media3:media3-exoplayer:1.0.0-beta03'
api 'androidx.media3:media3-exoplayer-ima:1.0.0-beta03'
New to android dev.
I want to contribute to an open-source app that I use on a day to day basis but I'm struggling to run it on an emulator on Android Studio.
I've cloned it on my machine, clicked 'import project (Gradle, Eclipse,.. ADT)', selected my folder..etc..
I've created a virtual device and when I click on the triangle button, the project doesn't appear as an app on the phone?
There are some build errors which I suspect are the source of my problems but I have no idea how to resolve them.
Error:(11, 33) java: package android.support.v4.widget does not exist
Error:(28, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MessagesActivity
_
Error:(18, 30) java: package android.support.v4.app does not exist
Error:(19, 34) java: package android.support.v4.content does not exist
Error:(96, 44) java: cannot find symbol
symbol: variable ContextCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
Error:(102, 13) java: cannot find symbol
symbol: variable ActivityCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
_
Error:(17, 33) java: package android.support.v4.widget does not exist
Error:(46, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MainActivity
Googling on stackoverflow suggested adding a line to the dependencies section in build.gradle, but it already contains implementation 'com.android.support:support-v4:28.0.0' so the errors shouldn't be there, right?
Appreciate any advice.
I just downloaded the https://github.com/baugarten/Android-Image-Edit from git hub but when i import project i have a lot of errors.i think i should import the library's but i don't know which one
these are some errors
Error:(7, 27) error: package org.apache.sanselan does not exist
Error:(60, 22) error: package com.google.ads does not exist
Error:(136, 13) error: cannot find symbol class AdView
Error:(179, 40) error: package AdSize does not exist
Error:(666, 46) error: cannot find symbol variable ExifTagConstants
The errors like "cannot find symbol" is because this class is not found on your repository. Find and add them.
The errors like "...does not exist" is because you should import these libraries into your project.
I am trying build a Android project in Phonegap.
On "cordova build" command i am getting the below error
My project folder Path: Audio\platforms\android\...
CordovaLib\src\org\apache\cordova\ExposedJsApi.java:43: error: cannot find symbol
CordovaLib\src\org\apache\cordova\ExposedJsApi.java:38: error: cannot find symbol
CordovaLib\src\org\apache\cordova\ExposedJsApi.java:43: error: cannot find symbol
CordovaLib\src\org\apache\cordova\IceCreamCordovaWebViewClient.java:34: error: cannot find symbol
CordovaLib\src\com\squareup\okhttp\internal\http\HttpsURLConnectionImpl.java:347: error: method does not override or implement a method from a supertype
[javac] #JavascriptInterface
...
Basically they are pointing to my "CordovaLib\src" #JavascriptInterface. Why is this, Where do i am missing
Please Help ..
CordovaLib\src\com\squareup\okhttp\internal\http\HttpsURLConnectionImpl.java:347: method does not override or implement a method from a supertyp **this error showing**
Some out of date packages on you machine were creating this. please upgrade everything it will works fine.
I am trying to build following CyanogenMod (can be found here) projects:
android_packages_apps_Contacts
android_packages_apps_ContactsCommon
android_packages_apps_Calendar
android_packages_providers_ContactsProvider
android_packages_providers_CalendarProvider
I'm using AndroidStudio. Downloaded and imported the projects.
Changing the Android SDK versions with no result.
The errors are as follows:
Error:(37, 33) java: package com.google.common.collect does not exist
Error:(23, 25) java: package com.android.vcard does not exist
Error:(134, 6) java: cannot find symbol
symbol: class VisibleForTesting
location: class com.android.contacts.common.util.SearchUtil
How can I build these projects? Do I need some other libriaries? Maybe I need to use CyanogenMod libriaries instead of Android SDK?
Here is the detailed info.