strange error when i import example - android

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

Related

Unable to resolve “expo-app-loading” from “App.js”

I am getting this error:
Failed building JavaScript bundle. Unable to resolve
“expo-app-loading” from “App.js”
when I ran my project after a couple of months. Earlier it was working fine but not now.
Can someone please help me out?
If you recently updated SDK versions (expo upgrade), please be sure to review the breaking changes carefully as is advised when you complete the install.
For instance, SDK-40 which was released in December has breaking changes notes about expo-app-loading that probably addresses what you're seeing perfectly.
Read this page : https://blog.expo.io/expo-sdk-40-is-now-available-d4d73e67da33
Look for section title: AppLoading has been extracted from the expo package
There were two problems:
expo-app-loading was not in my package.json, so I just installed it again and boom, it was in my packege.json then.
I was importing 'AppLoading' the wrong way. I wrote
import {AppLoading} from "expo-app-loading"; //wrong way
Which was breaking. Then I corrected it to
import AppLoading from "expo-app-loading"; //correct way
Which solved the issue.

error: package com.getcapacitor.community.firebasecrashlytic does not exist

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.

Cannot resolve symbol 'baidu', baidumap

I'm trying to use baidumap in my android app.
Thanks to a chinese friend I succeed to register on the baidu website to be able to access the API.
However trying to import it failed everytime:
import com.baidu.mapapi.map.BaiduMap;
Sent the error Cannot resolve symbol 'baidu'. I'm unable to import any component related to Baidu. Any ideas?

import android.support.wearable.view.WatchViewStub cannot be resolved

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 ?

Android : GreenDroid-GoogleAPIs fails with StackOverflow Exception during Import

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.

Categories

Resources