Android Studio Usage Issues Summary

Source: Internet
Author: User

Using Android Studio has also been a while, summarizing some of the common problems encountered during this time

One, font size problems

No font options similar to eclipse were found in the use of Android Studio, and the font sizing method is as follows:

 1.File---->settings, find editor

2. Ching the arrow refers to the option

Then we can press CTRL while sliding the wheel to adjust the font size

Ii. import third-party class libraries

1. There is a difference between the need to import a third-party class library and Eclipse in the development process , and we import the slidingmenu class library from GitHub is downloaded and extracted to the project directory.

2. Then we'll restart our Android studio and we'll find our class library under our project.

Then we need to modify the Settings.gradle of this file under our root directory, be sure to note that it is under the root directory. The code that was added inside

The name of our class library is added and can only be modified manually. I am also very helpless.  

3. Next we want to change is the app directory Build.gradle, here to note is the app directory Build.gradle, add the following code

Dependencies {    compile project (': Slidingmenu-master ')}

This is also the name of our Import class library. This time we open file--->project Structure

You can see the class library that we imported. We have not finished the word here, and we will make an error when compiling it.

4. Also add a Build.gradle file in the project Slidingmenu-master directory, as follows:

Buildscript {repositories {mavencentral ()}dependencies {classpath' com.android.tools.build:gradle:0.6.+ '}}apply Plugin:' Android-library 'repositories {mavencentral ()} android {Compilesdkversion18buildtoolsversion"17.0.0"Defaultconfig {minsdkversion14targetsdkversion18} sourcesets {main {manifest.srcfile' Androidmanifest.xml 'Java.srcdirs= [' src ']resources.srcdirs= [' src ']aidl.srcdirs= [' src ']renderscript.srcdirs= [' src ']}}}dependencies {Compile' com.android.support:appcompat-v7:+ 'Compile files (' Libs/gson-2.2.4.jar ')}

This time may also be the SDK version of the issue, we combined with their own changes can be, Android Studio import class library more laborious.

Three Project Export

in the Android Studio Export in APK the steps are as follows

Click Generate Signed APK

Click Create New, and then we'll see the same options as in Eclipse.

Key store path our secret key address

Password Password

Name of Alias secret key

Validity effective years

First and last name Publisher name fill out these and click OK

Click Finish to complete the release of our apk.

Android Studio Usage Issues Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.