简体   繁体   English

无法启动Android库项目

[英]Android library projects cannot be launched

i've been trying to run a project but there's a pop up window that says "Android library projects cannot be launched." 我一直在尝试运行一个项目,但有一个弹出窗口显示“无法启动Android库项目”。

Now, my project needs API 7 and i've already installed it in Android SDK Manager. 现在,我的项目需要API 7,并且已经将其安装在Android SDK Manager中。 In Properties -> Android -> Target build, i choose Android 4.1.2. 在属性-> Android->目标构建中,我选择Android 4.1.2。 I also added these lines to the Android Manifest: <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" android:maxSdkVersion="16"/> 我还将这些行添加到Android清单中: <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" android:maxSdkVersion="16"/>

yet, when i run my project, the same pop up message shows. 但是,当我运行项目时,会显示相同的弹出消息。 Anyone, please help me. 任何人,请帮助我。 Thanks! 谢谢!

Your project surely is configured as "library" thats why you get the message : "Android library projects cannot be launched." 您的项目肯定配置为“库”,这就是为什么您收到消息: “ Android库项目无法启动”的原因。

right-click in your project and select Properties. 右键单击项目,然后选择“属性”。 In the Properties window -> "Android" -> uncheck the option "is Library" and apply -> Click "ok" to close the properties window. 在“属性”窗口中->“ Android”->取消选中选项“ is Library”,然后应用->单击“确定”以关闭属性窗口。

the naive and somewhat literal interpretation of the message would be that your project IS a library project; 对消息的幼稚和有点字面意义的解释是您的项目是一个图书馆项目; and indeed, they cannot be launched, only embedded in some main project. 实际上,它们不能启动,只能嵌入某些主要项目中。

Did you double check that your project is NOT a library project? 您是否仔细检查过您的项目不是图书馆项目? There used to be a checkbox in the "create new android project" wizard... 以前在“创建新的android项目”向导中有一个复选框...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM