w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Import an Android Project from Eclipse to Android Studio and I have this error message "failed to find Build Tools revision 8.0.0"
Your build.gradle is trying to use Android SDK tools 8 which isn't installed on your machine. If you look at your build.gradle file you probably have this line buildToolsVersion "8". You want your build.gradle file to point to the Android SDK tools that you currently have installed (preferably the latest). Just open the Android SDK manager and see which tools you have installed and change the buildToolsVersion "8" to the right version.

Categories : Android

Android Studio: how to import Android library project
Go back to Project Structure window where you added the new module. Click on your main module, go to Dependencies tab, click the plus icon and select Module Dependency.

Categories : Android

Import project into Android-Studio
Managed to solve on my own. Needed to alter the build.gradle file a bit so the buildscript->dependencies will hold this: classpath 'com.android.tools.build:gradle:0.5.+' and not: classpath 'com.android.tools.build:gradle:0.4' Then used the "local gradle distribution" option with the 1.6 version I downloaded and it worked fine.

Categories : Intellij Idea

How can I import library at android-studio?
Android Studio uses Gradle for building. Version 2.2 should pick up all libraries specified in build.gradle file. However, If you change anything in Project Structure dialog it won't update build.gradle file. Open -project_root -module_root build.gradle This file should NOT be empty. There is another empty build.gradle in the project_root folder so do not confuse them. Add all libraries you need inside dependencies closure. Do not confuse dependencies closure with buildscript.dependencies. apply plugin: 'android' repositories { mavenCentral() } dependencies { compile files('libs/android-support-v4.jar') //here is depenency from Maven Central Repository compile 'org.roboguice:roboguice:2.0' //here is dependency from your local libs folder compile

Categories : Android

Facebook SDK import into Android Studio and add it in my app
It does indeed have to do with Gradle structure. Effectively, you need to create Gradle build files for the Facebook SDK. We wrote up a doc that may be able to help you. Give it a shot and be sure to provide us feedback with anything you found ambiguous or difficult, and I will look into it and modify the doc accordingly. Keep in mind that Android Studio is in its early stages as of this writing, so it's possible that as the project progresses we may need to make changes in the doc accordingly. I also found that sometimes I just had to shut Android Studio down and restart it before things would magically start working again.

Categories : Android

Import scribe-1.2.1.jar in Android Studio
Edit your module's build.gradle file, just append one line in the dependencies scope. dependencies { ... compile files('libs/android-support-v4.jar') compile files('libs/scribe-1.2.1.jar') } FYI: at this time Android Studio project setting did not affect the gradle build, so you must edit it yourself. there are a user guide for gradle android plugin.

Categories : Android

How to import MenuDrawer from SimonVT in Android Studio
If all you need is a menu drawer that opens and closes, you dont need all the configurations, and other stuff that come with the library, I would go with Android's DrawerLayout. Its easy to use and you don't have all the headaches and resource overhead that comes with setting up a library project to use in your project.

Categories : Java

import external library in android studio 0.2.8
Step 1: Select Project > Right Click > Open Module Settings (F12) > Projects Settings > Click Modules. Step 2: Click your Project > you will see 3 tabs : Sources/Path/Dependencies. Step 3 : Select Dependencies tab. You will see green '+' button to the right of 'Scope' title. Click on this and it will allow you to add Jars and libs. PS: make the scope of the added jars/libs as Compile

Categories : Android

Android Studio gradle and libraries import
I don't know how to solve your problem, but when I faced problem of third party library use in Gradle build, I solved by following way. Following is my structure of project. GsonDemoProject    GsonDemo       build       libs           android-support-v4.jar           gson.jar       src           main           build.gradle       build.gradle       settings.gradle I edited my build.gradle file which resides in src directory.

Categories : Android

How to import Android Studio project in Eclipse?
As the others say, a full import is not possible, but just try a manual 'import'. The key files for an Android project are the Java sourcecode (src directory), the resource XML files and the Manifest. Just create a new Android project in Eclipse and simply copy these files over. You may have to create a new package structure, so construct the necessary packages and copy each sourcefile over and refactor the package name if necessary. If you use any additional libraries, you may have to manually import them as well.

Categories : Android

How to import apklib into Android Studio or IntelliJ project?
I want to answer my own question after I found out recently. If we have module B need module A library. apklib is create as a library and can be use and read from maven to reference. So if set module A in maven's pom.xml dependency, when mvn build it will ask maven to look for apklib. And as IntelliJ and Android Studio, just go to project structure set the module to Android Library, and add module dependency, then like module B can use from module A.

Categories : Android

Failed to import Gradle project on android studio
This problem happens when we work with android sdk studio different from what you should do is install Android Support Repository https://sites.google.com/a/android.com/tools/knownissues

Categories : Android

How to import remote library in Android Studio using gradle?
You can use: compile 'com.nineoldandroids:library:2.4.0+' or if you have the library copied to your project libs directory, you can use: compile files ('libs/ nineoldandroids-2.4.0.jar') however, you can check out my post on getting started with swipelistview: http://modewagon.wordpress.com/2013/09/16/getting-started-with-swipelistview/

Categories : Android

Android Studio import project with gradle changes iml files
The IDEA official documentation is clear about that : Share all the files under .idea directory in the project root except the workspace.xml and tasks.xml files which store user specific settings, also share all the .iml module files. Source : How to manage IntelliJ IDEA projects under Version Control Systems EDIT : But, sharing iml files seems to be wrong. Best thing is to use a similar gitignore file and to import the project in AndroidStudio for each developer.

Categories : Android

Android Studio Import Module Gradle Build Error
Do not add modules through the Studio interface. Always make the changes directly in build.gradle and then reimport into Studio. Also, update the plugin dependency to com.android.tools.build:gradle:0.4.+ to get the latest 0.4.* version.

Categories : Android

How to import Actionbar sherlock library in new latest version of android studio
If your ActionBarSherlock library doesn't contain a build.gradle file, grab it from here: https://github.com/JakeWharton/ActionBarSherlock/blob/dev/actionbarsherlock/build.gradle. Save this file into the root directory of the library. If you're referencing the library from outside of your project directory, you should define where the library is in settings.gradle, like so... project(':actionbarsherlock').projectDir = new File('/path/to/library') and then right before that line, you should have: include ':actionbarsherlock' Now, in your build.gradle file, include the following... dependencies { compile project(':actionbarsherlock') } Now you should be able to build with Gradle. If you're unfamiliar with Gradle, start reading about it here: http://www.gradle.org/docs/current/use

Categories : Android

Android Studio Import Project - Use gradle wrapper "Disabled Option"
do the eclipse step where you export to generate the gradle build file stop importing your project for now and create a new one. close android studio. navigate on your file system to the new project. take the "gradle" folder in there and copy it in to your project. try again. :-)

Categories : Android

Can I import text from a pdf file to display in HTML with the same styles using visual studio 2010?
Here I found converter from PDF to HTML online, so you won't need to download anything. I didn't used it yet, but maybe It's working http://www.pdfonline.com/convert-pdf-to-html/ But you can also use <iframe href="pdf_file.pdf" width="500" height="200"></iframe> And PDF file will be shown in frame in your browser using Adobe PDF reader.

Categories : HTML

Failed to import Gradle project error creating new project with Android Studio
I had same issue with the latest Android Studio () today, and I finally found that configuring a https proxy for Gradle can solve the issue. I only set a http proxy at the beginning. Gradle needs to sync some files via HTTPS. Use IP address instead if hostname of proxy can't work.

Categories : Android

How to Import Messages from file to android
To read and parse xml file: XmlPullParserFactory pullParserFactory; try { pullParserFactory = XmlPullParserFactory.newInstance(); XmlPullParser parser = pullParserFactory.newPullParser(); InputStream in_s = getApplicationContext().getAssets().open("temp.xml"); parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); parser.setInput(in_s, null); parseXML(parser); } catch (XmlPullParserException e) { e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } private void parseXML(XmlPullParser parser) throws XmlPullParserException,IOException { ArrayList<SMSMessage> smsMessages = null; int event

Categories : Android

Android Studio: access a listview element in the xml file from the java file.
Assuming you have a layout file mylayout.xml with this <ListView ... android:id="@+id/listView"/> In the onCreate(Bundle savedInstanceState) : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mylayout); ... ListAdapter myAdapter = new MyListAdapter(...); ListView listView = (ListView)findViewById(R.id.listView); //use the id specified in the layout file listView.setAdapter(myAdapter);

Categories : Android

How to access a js file from another js file in titanium studio android project
You have to use Alloy to do this, to open the Home controller view just do this: function login_Click(e){ var homeController = Alloy.createController('home'); // If home.xml's container is a Window this will work homeController.getView().open(); }

Categories : Android

Android Studio File Structure
Look at the top toolbar of the Structure tool window, the first two buttons control the sort order. The first button sorts by visibility and the second sorts alphabetically. Ensure that BOTH are unchecked in order to view the structure in the order in which items appear.

Categories : Android

Where is android studio building my .apk file?
When Gradle builds your project, it puts all APKs in build/apk directory. You could also just do a simple recursive find command for *.apk in the top level directory of your project. Here is a better description... View full image at http://i.stack.imgur.com/XwjEZ.png

Categories : Android

Android Studio issue with R file
Yes this is a known issue in the newest version of android studio. Google has suggested a temporary workaround until they can track down the problem and fix in next release. Turn off external builds in preferences > compiler. It might help. Source: cannot resolve R into variable after Android studio update and R.java not updated after update to 0.1.6 . Hope this helps.

Categories : Android

how to update android studio with .jar file?
Note: There is not a patch update available from 0.1.9 to 0.2. To update from Android Studio 0.1.x to 0.2.x, you must install a new Android Studio bundle from this page. The reason for that is that we have made changes to the bundled SDK such that it includes a pre-configured local Maven repository which can serve up the v4 support library and which is required for creating new projects. From http://developer.android.com/sdk/installing/studio.html#Revisions So why not downloading a new version of Android Studio? Update: If you can't update by network. Try this: java -classpath /path/to/AI-130.687321-130.692269-patch-unix.jar com.intellij.updater.Runner install $PWD From https://code.google.com/p/android/issues/detail?id=56068

Categories : Android

See database file(content) via Android Studio
This might not be the answer you're looking for, but I don't have a better way for downloading DB from phone. What I will suggest is make sure you're using this mini-DDMS. It will be super hidden though if you don't click the very small camoflage box at the very bottom left of program. (tried to hover over it otherwise you might miss it.) Also the drop down that says no filters (top right). It literally has a ton of different ways you can monitor different process/apps by PPID, name, and a lot more. I've always used this to monitor phone, but keep in mind I'm not doing the type of dev work that needs to be 120% positive the database isn't doing something out of the ordinary. Hope it helps

Categories : Android

Android Studio - Unable to open PNG file
Are you using Windows? This error could happen if the generated build file path exceeds the Windows (not NTFS) max path length of 260 characters. Make sure your project path is not too long, use short names as well. More info from MS: Maximum Path Length Limitation In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:some 256-character path string" where "" represents the invisible terminating null character for the current system codepage. (The characters < > are used here

Categories : Android

Android Studio Issue - Premature end of file
This happened when I checked out the project in another computer and then back to the first one. I fixed the problem by closing the project and then File > Import Project... from the exect same sources. Android Studio fixed the project while keeping all previous gradle configurations. It drove me crazy too :)

Categories : Android

how can I add the aidl file to Android studio (from the in-app billing example)
Just as the error message says, you need to put IInAppBillingService.aidl in the correct directory dictated by it's package (com.android.vending.billing). Within the src/main/aidl/ folder you already have, put the .aidl file in com/android/vending/billing/.

Categories : Android

xml file in android studio appears an error
This sample code can helps you. Take care on android:shape="rectangle" . <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <gradient android:angle="180" android:centerColor="@color/Bisque" android:endColor="@color/Red" android:startColor="@color/Red" /> <stroke android:width="1dip" android:color="@color/Black" /> <corners android:radius="3dip" /> <padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp" /> </shape> Try this for your code: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> &

Categories : Android

no gradle file in eclipse project Android studio
All you need is a simple build.gradle file for your ActionBarSherlock project. Here's one I've created: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:13.0.0' } android { buildToolsVersion "17.0" compileSdkVersion 17 sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } }

Categories : Eclipse

How can I set up custom namespaces in layout file in Android studio?
res-auto uses the current package name, not the library package name. In your case, it translates to net.mypackage. If you want to use the namespace for a library, you need to use its package name. Judging from the class name, you are using the DSLV library from here. So, you'll want to use: xmlns:dslv="http://schemas.android.com/apk/res/com.mobeta.android.dslv"

Categories : Android

Generating a Pro Guard configuration file with Android Studio
You can copy the default Proguard configuration file to your project. sdk-location/tools/proguard/examples/android.pro — copy and paste it as proguard.cfg in your project. Then choose it when AS asks for the config file path.

Categories : Android

Android Studio ORMLite Configuration File - Could Not Find Raw Directory
I found a decent solution. Use a separate IDE (not Android Studio) to create your configuration file. In my case I used NetBeans IDE 7.3.1 and it worked just fine. run: Writing configurations to G:MachineSoundsProjectMachineSoundssrcmain es awormlite_config.txt Wrote config for class machinesoundandroidorm.RecordedSound Done. BUILD SUCCESSFUL (total time: 0 seconds)

Categories : Java

Android Studio: How to create build.gradle file for use on Jenkins?
I ended up creating these build files from scratch. Here's some guidelines: If you have a project with multiple modules, create a settings.gradle file at the root of your project (at the same level as all the modules). Your settings.gradle file should look something like this: include 'ActionBarSherlock' include ':facebook-android-sdk-3.0.1:facebook' include 'google-play-services_lib' include ':SlidingMenu-master:library' include 'Tinder' include 'ViewPagerIndicator' include 'volley' include 'windowed-seek-bar' Within each module, create a build.gradle file. For library projects, your build.gradle file should look something like this: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } app

Categories : Android

Does import __foo__ import from the __init__ file of the foo package?
I cannot actually make ompclib/m_compile.py work. ompc/m_compile.py is almost the same file, but is actually used by the ompc codebase. My conclusion is that that file and probably the whole ompclib directory is a left-over from an earlier development stage and the author simply has forgotten to clean it up. The import __ompc__ import is otherwise nothing more but a broken import. It does not magically transform into importing the ompc package. ompc/m_compile.py does work, and uses import ompc instead.

Categories : Python

Get 'import' error when trying to import .rake file in ruby
I think you're probably going about this the wrong way. Why is that functionality in a Rakefile? Rake is Ruby's equivalent of make - it's designed to handle software tasks with dependencies, like building an app, or packaging an releasing a Rubygem. Even Wikipedia has a pretty good description of what it's for, or see this answer for a link dump. What you've described sounds like it's normal Rails stuff - take web input, act on it, interface with database. I'd seriously consider rewriting your Rake tasks inside Rails.

Categories : Ruby On Rails

Android Studio: "could not find method compile<> for arguments [file collection]"
I had the same problem, but I added the dependencies to the wrong build.gradle. You have to add the dependencies to the AndroidStudioProjects/Project/Project/build.gradle, not AndroidStudioProjects/Project/build.gradle.

Categories : Amazon

Android studio file explorer not showing files in data folder
I found a solution based on the answer in stack overflow . How to access data/data folder in Android device? First i rooted the device .Then i modify the access permission of data folder using adb shell. the code is $ adb shell $ su # mount -o rw 1|root@android:/ # chmod -R 777 data/ Now i can access the files.Thank you @param for your valuable comment.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.