Using Android Studio has also been a while, summarizing some of the common problems encountered during this time
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
Second, import third-party class library |
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.
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