Error when trying to import ActionBarSherlock Sample Project - android

When I import the ActionBarSherlock Sample Project I get error saying [SampleList] Unable to resolve target 'android-14'. What could it be.please help

Start Android SDK Manager and update downloading Android 4.0 (API 14).
Or
Change the Project Properties to compile with an existing Android OS Version.
(Right click to your project folder > Properties > Android > select any version you want)

ok,atlast managed to solve this issue. the problem was solved by importing the demo project in my eclipse workspace.for some reason eclipse did not like me to run the sample app from the actual folder. so you need to import the demo folder in ../JakeWharton-ActionBarSherlock-071a61c\actionbarsherlock-samples\demos and in eclipse while importing check the "copy files to workspace"

Related

Cant import OpenCV module in android studio

I've been trying to import Open CV module to android studio exactly as many tutorials online told me to but it wont work. I googled the issue a bit and found a solution to choose the sdk folder as the directory and not java but even that dosent work.Im using Android Studio v4.0.1 and the latest version of OpenCV. Help.
First of all make sure your sdk folder in your downloaded opencv sdk contains a build.gradle file. If your downloaded sdk doesn't have build.gradle try another version of opencv sdk, Unless you have to select java folder in the opencv sdk and after that copy jni files into your project tree.
The easiest way to import OpenCV sdk into your project is as follow:
Create an Android Project
File -> New -> Import Module -> path to OpenCV/sdk/ -not java folder! (opencv 4+)
File -> Project Structure -> add OpenCV as 'Module Dependency' of 'app'
Clean Project
Done! no need to copy jni libs and other things.
Importing opencv to androidstudio
->First download opencv from https://opencv.org/releases/
for your current using android studio version,and extract it.
->open android studio create new project if project is already
exist follow the below.
->in android studio choose option in MENU->File->Import
Module here please select the your opencv-android directory
till sdk selection
eg:("E:\stardev\OpenCV-android-sdk\sdk") and
then finish, if your downloaded same version it's good to go
else change the build.gradle setting from opencv build.gradle
and sync.
->after this to add as a dependency in android studio
Choose
Menu->File->Project Structure->dependencies,
select app from tab and add(+ icon) from menu select module
dependency and select sdk from here.
->to test goto your project activity and
(import org.opencv.core.Core)
If you are using Arctic fox and still facing this issue, This Solution worked for me.
If your next and/or finish buttons is still not clickable after adding the right path
https://stackoverflow.com/a/68738767/12052997

AndroidBootstrap could not be found

How to solve it when I import eclipse project into my android studio
Image to understand issue
Edit 1:
Import Eclipse Project to Android Studio:
Start Android Studio and close any open Android Studio projects.
From the Android Studio menu click File > New > Import Project.
Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc.).
Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
Select the destination folder and click Next.
Select the import options and click Finish.
The import process prompts you to migrate any library and project dependencies to Android Studio, and add the dependency declarations to the build.gradle file.
For detail description try this link
https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse
Edit2:
Well, there might be another way of solving this problem, but I ended up removing the line in the project.properties file that was making reference to the Android Bootstrap library.

No Resource found - Google Play Services version - Old Android Project

I am actually trying to open an old android project, which I have to edit. The project was coded back in Oct 14.
Now I downloaded the project from Github, and opened it in Android Studio via Import. When I try to build or debug, I get the error:
Error:(113, 28) No resource found that matches the given name (at
'value' with value '#integer/google_play_services_version').
After hours of searching in similar topics I did not find a solution that helped me.
Has anyone an idea how to solve the problem?
Try this below Methods,I hope this will help you.
Edit 1:
Import Eclipse Project to Android Studio:
1.Start Android Studio and close any open Android Studio projects.
2.From the Android Studio menu click File > New > Import Project. Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc.).
3.Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
4.Select the destination folder and click Next.
5.Select the import options and click Finish.
6.The import process prompts you to migrate any library and project dependencies to Android Studio, and add the dependency declarations to the build.gradle file.
For detail description try this link
https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse
Edit2:
Remove the line in the project.properties file that was making reference to the google_play_services_version.
All the Best.

import SDK in Android Studio

I just finished an application for Android and I would like to put ads on it to earn some money... I decided to use the network Unity Ads but I have a problem : I do not know how to import the SDK library project in Android Studio (this is only explained for Eclipse and I work on Android Studio). Could you explain me how to do that ?
According to the documentation, the SDK seems to be an Eclipse Project :
To import the SDK library project, go to Eclipse's 'File' > 'Import' menu, and select 'General' / 'Existing Projects into Workspace'
In Android Studio, you just need to go to File -> Import Project, then choose the root of your SDK folder, and follow the wizard. All should work.
In Android Studio Go to File-> Import Module. Specify the location and import the module.Once done; Open Project Structure( You will find a Folder icon at the top) ->Select the app module ->Switch to Dependencies Tab-> Click on + icon to add a Library/File/Module dependency-> There you will find the module you just imported. Add and rebuild.

Android Studio can not find R when importing module

I was trying to import an Eclipse "library project" as module to Android Studio.But I am consistantly getting "Cannot find R.java" error.The weird thing is the module has already R.java in /gen file.What am I supposed to do?
Thank you in advance!
EDIT:I have already an app in Android Studio.Now I am trying to import a library project to it.So what I am doing is open the project(my actual app),then File-Import Module in Android Studio.But getting the above error.
You need to import your library using gradle (assuming you are using gradle). After that you would have several R.java to choose from based on their package.
Try this File > Settings > Compiler > check use-in progress checkbox. then rebuild the project. I hope it helps.

Categories

Resources