安卓创建新工程时的几个选项的说明(http://developer.android.com/)

本文详细介绍了Android应用开发中几个关键配置项的意义与设置方法,包括应用名称、工程名字、包名、最小SDK版本、目标SDK版本及编译平台版本等,并解释了它们各自的作用和重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • Application Name is the app name that appears to users. For this project, use "My First App."

    应用名字:这是用户看到的你的app的名字。

  • Project Name is the name of your project directory and the name visible in Eclipse.
  • 工程名字:这是你在eclipse中看到的你的工程的名字。也是你的工程目录名字。
  • Package Name is the package namespace for your app (following the same rules as packages in the Java programming language). Your package name must be unique across all packages installed on the Android system. For this reason, it's generally best if you use a name that begins with the reverse domain name of your organization or publisher entity. For this project, you can use something like "com.example.myfirstapp." However, you cannot publish your app on Google Play using the "com.example" namespace.
  • 包名:这是你的app的包名,一个安卓系统中安装的app包名不能重复。最好用作一个域名的形式如com.example.myfirst
  • Minimum Required SDK is the lowest version of Android that your app supports, indicated using the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set. If any feature of your app is possible only on newer versions of Android and it's not critical to the app's core feature set, you can enable the feature only when running on the versions that support it (as discussed in Supporting Different Platform Versions). Leave this set to the default value for this project.
  • 最小SDK: 这是你的app所支持的最小的安卓版本(用API level来说明)。经过测 试,如果使用了最小SDK 4.4 建立的工程安装到4.2的安卓系统,则提示解析程序包时出现错误。这就证明根本无法安装。
  • Target SDK indicates the highest version of Android (also using the API level) with which you have tested with your application.

    As new versions of Android become available, you should test your app on the new version and update this value to match the latest API level in order to take advantage of new platform features.

  • 目标SDK:这是目标的SDK但不是最大的SDK,是应用最多的版本。它支持向前兼容,即目标SDK为2.0可以在4.0版本运行,只不过样式是2.0的。

  • Compile With is the platform version against which you will compile your app. By default, this is set to the latest version of Android available in your SDK. (It should be Android 4.1 or greater; if you don't have such a version available, you must install one using the SDK Manager). You can still build your app to support older versions, but setting the build target to the latest version allows you to enable new features and optimize your app for a great user experience on the latest devices.
  • 编译SDK 最好使用最新的SDK,这不仅让你的APP可以适用于老版本,也可以适用最新版本。

  • Theme specifies the Android UI style to apply for your app. You can leave this alone.
  • 主题
  • (未完待续)
failed The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. :app:mergeDebugResources :app:mapDebugSourceSetPaths :app:checkDebugAarMetadata :app:processDebugMainManifest :app:javaPreCompileDebug :app:mergeDebugAssets :app:checkDebugDuplicateClasses :app:mergeDebugNativeLibs :app:dataBindingMergeDependencyArtifactsDebug :JetpackMvvm:compileDebugKotlin :JetpackMvvm:bundleLibRuntimeToJarDebug org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform agentweb-4.1.3.aar (com.just.agentweb:agentweb:4.1.3) to match attributes {artifactType=android-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. org.gradle.internal.resolve.ArtifactNotFoundException: Could not find agentweb-4.1.3.aar (com.just.agentweb:agentweb:4.1.3). org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. org.gradle.api.internal.artifacts.transform.TransformException: Failed to transform agentweb-4.1.3.aar (com.just.agentweb:agentweb:4.1.3) to match attributes {artifactType=android-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. org.gradle.internal.resolve.ArtifactNotFoundException: Could not find agentweb-4.1.3.aar (com.just.agentweb:agentweb:4.1.3). org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspa
03-14
06-10 14:27:52.220 16648 16648 W System.err: java.io.FileNotFoundException: /sys/devices/platform/fe8a0000.usb2-phy/otg_mode: open failed: EACCES (Permission denied) 06-10 14:27:52.221 16648 16648 W System.err: at libcore.io.IoBridge.open(IoBridge.java:492) 06-10 14:27:52.221 16648 16648 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:236) 06-10 14:27:52.222 16648 16648 W System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:125) 06-10 14:27:52.222 16648 16648 W System.err: at com.kgzn.developer.dialog.CommonToolHolder.switchOTG(CommonToolHolder.java:36) 06-10 14:27:52.222 16648 16648 W System.err: at com.kgzn.developer.dialog.SwitchDialog$16.onClick(SwitchDialog.java:292) 06-10 14:27:52.222 16648 16648 W System.err: at android.view.View.performClick(View.java:7448) 06-10 14:27:52.223 16648 16648 W System.err: at android.widget.CompoundButton.performClick(CompoundButton.java:144) 06-10 14:27:52.223 16648 16648 W System.err: at android.view.View.performClickInternal(View.java:7425) 06-10 14:27:52.223 16648 16648 W System.err: at android.view.View.access$3600(View.java:810) 06-10 14:27:52.223 16648 16648 W System.err: at android.view.View$PerformClick.run(View.java:28305) 06-10 14:27:52.223 16648 16648 W System.err: at android.os.Handler.handleCallback(Handler.java:938) 06-10 14:27:52.224 16648 16648 W System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 06-10 14:27:52.224 16648 16648 W System.err: at android.os.Looper.loop(Looper.java:223) 06-10 14:27:52.224 16648 16648 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7660) 06-10 14:27:52.224 16648 16648 W System.err: at java.lang.reflect.Method.invoke(Native Method) 06-10 14:27:52.225 16648 16648 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 06-10 14:27:52.226 16648 16648 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 06-10 14:27:52.227 16648 16648 W System.err: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) 06-10 14:27:52.227 16648 16648 W System.err: at libcore.io.Linux.open(Native Method) 06-10 14:27:52.227 16648 16648 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 06-10 14:27:52.227 16648 16648 W System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254) 06-10 14:27:52.228 16648 16648 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:166) 06-10 14:27:52.228 16648 16648 W System.err: at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7546) 06-10 14:27:52.228 16648 16648 W System.err: at libcore.io.IoBridge.open(IoBridge.java:478)
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值