【Android入门】Android project files

原创 2013年12月03日 16:15:30


The manifest file describes the fundamental characteristics of the app and defines each of its components. 

One of the most important elements your manifest should include is the <uses-sdk> element. This declares your app's compatibility with different Android versions using the android:minSdkVersion andandroid:targetSdkVersion attributes. For your first app, it should look like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... >
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />

You should always set the android:targetSdkVersion as high as possible and test your app on the corresponding platform version.

src/ Directory for your app's main source files. By default, it includes an Activity class that runs when your app is launched using the app icon.
res/ Contains several sub-directories for app resources. Here are just a few:
Directory for drawable objects (such as bitmaps) that are designed for high-density (hdpi) screens. Other drawable directories contain assets designed for other screen densities.
Directory for files that define your app's user interface.
Directory for other various XML files that contain a collection of resources, such as string and color definitions.

When you build and run the default Android app, the default Activity class starts and loads a layout file that says "Hello World." The result is nothing exciting, but it's important that you understand how to run your app before you start developing.

Android Studio “Sync project with Gradle Files”按钮消失问题

背景今天用Android studio的过程中,突然发现工程报错,出现sync project这个同步按钮消失不见,懵b了。现象描述1.Sync project with Gradle Files按钮...
  • u012250875
  • u012250875
  • 2017年03月11日 19:35
  • 6917

[笔记]如何解决Your project contains C++ files but it is not using a supported native build system

最近因为项目需要下载Android终端模拟器(Android-Terminal-Emulator)源码进行调试编译,编译过程中出现报错 Error:Execution failed for ta...
  • SweetTool
  • SweetTool
  • 2017年05月08日 22:06
  • 11593

svn更新后报错,某个类不能解析(Sync project with Gradle Files是干啥用的)

  • xucongxiang
  • xucongxiang
  • 2015年12月01日 14:23
  • 1607

Eclipse项目转AndroidStudio报错:Your project contains C++ files but it is not using a supported native...

报错内容 Error:Execution failed for task ‘:app:compileDebugNdk’.  > Error: Your project contains C+...
  • zxc514257857
  • zxc514257857
  • 2017年08月01日 22:29
  • 597

android studio Gradle project sync问题

 Android studio每次打开project时,Gradle都会sync检查整个工程。有时导入一个新的project,即open an existing android studio p...
  • fengzhongxue626
  • fengzhongxue626
  • 2016年07月08日 18:56
  • 2913

Android Studio -- Could not save project!: Unable to save project files.不能保存项目,报错解决办法

问题: Android Studio -- Could not save project!: Unable to save project files.不能保存项目,报错解决办法 解决方法: ...
  • wuqilianga
  • wuqilianga
  • 2016年04月11日 17:31
  • 1691

compile、provided、compile files、compile project四者的区别

在一个Android项目的build.gradle中,dependencies闭包中有以下四种形式的声明: compile 'com.android.support:appcompat-v7:22....
  • xiaoxiaoniaoge
  • xiaoxiaoniaoge
  • 2016年01月14日 18:12
  • 4473

AndroidStudio开发环境搭建之Failed to sync Gradle project

接上文,安装好AndroidStudio之后,高高兴兴地打开软件,竟弹出Failed to sync Gradle project的错误。如图  ,Message控制台输出以下信息, Event L...
  • Ever_GZ
  • Ever_GZ
  • 2015年08月07日 10:55
  • 4975

Android Studio Jni 开发实例

android studio jni 开发步奏如下: 1、在AS中新建一个Project,新建native JniUtils类 public class JniUtils { publ...
  • shengyakun1
  • shengyakun1
  • 2016年12月28日 17:11
  • 512

gradle中compile,compile files,compile project的区别

在一个Android项目的build.gradle中,dependencies闭包中有以下四种形式的声明: compile 'com.android.support:appcompat-v7:22....
  • qq_30393319
  • qq_30393319
  • 2015年12月08日 10:39
  • 2140
您举报文章:【Android入门】Android project files