简体   繁体   English

自定义键盘-无法识别启动活动:找不到默认活动

[英]Custom Keyboard - Could not identify launch activity: Default Activity not found

I am following a tutorial on creating a custom keyboard for an Android device. 我正在关注有关为Android设备创建自定义键盘的教程。 I am using Android Studio 2.1.2. 我正在使用Android Studio 2.1.2。 There is no activity in the program because you have to activate the keyboard in the language & input settings. 该程序中没有活动,因为您必须在语言和输入设置中激活键盘。

When I run the program I get this error: "Could not identify launch activity: Default Activity not found Error while Launching activity" 当我运行程序时,出现以下错误:“无法识别启动活动:找不到默认活动启动活动时出错”

I have posted on the site but have gotten no response. 我已经在网站上发布了,但没有得到回应。 I followed the tutorial step by step and looked it over for a couple of days. 我一步一步地遵循了该教程,并进行了几天的研究。 I am new to Android Studio and Android applications and was wondering if anyone knew how to help me. 我是Android Studio和Android应用程序的新手,想知道是否有人知道如何帮助我。

This is the link to the site I am following: http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615 这是指向我正在关注的网站的链接: http : //code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615

I just figured out what needed to be done. 我只是想出需要做什么。 You have to edit the configurations and change the launch option to "nothing". 您必须编辑配置并将启动选项更改为“ nothing”。 This way it won't try to launch and activity that does not exist. 这样,它将不会尝试启动不存在的活动。 run->edit configurations then look for the launch options 运行->编辑配置,然后查找启动选项

Well you have answered it by yourself. 好吧,你已经自己回答了。

If you are creating an keyboard application(inputmethod) in android, everytime you compile and run your applcation, it will show a warning that there is no default activity since it's InputMethodService, the service. 如果要在android中创建键盘应用程序(输入法),则每次编译并运行应用程序时,都会显示警告,因为该服务是InputMethodService,因此没有默认活动。 Even you add activity like some settings activity for your keyboard, it will still show you warnings and it's the normal operation. 即使您为键盘添加了一些设置活动(例如一些设置活动),它仍然会向您显示警告,这是正常操作。

暂无
暂无

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

相关问题 无法识别启动活动:未找到默认活动 - Could not identify launch Activity: Default Activity not found 无法识别启动活动:未找到默认活动 - Could not identify launch Activity: Default Activity wasn't found Android Automotive:无法识别启动活动:未找到默认活动 - Android Automotive: Could not identify launch activity: Default Activity not found 我经常发现此特定错误:“无法识别启动活动:找不到默认活动启动活动时出错” - I often found this specific error: “Could not identify launch activity: Default Activity not found Error while Launching activity” 无法识别启动活动:找不到默认活动启动活动时出错 - Could not identify launch activity: Default Activity not found Error while Launching activity 无法识别启动活动,未找到默认活动启动活动时出错 - Could not identify launch activity , Default Activity not found Error while Launching activity 无法识别启动活动:升级到 Android Studio 4.0 后未找到默认活动 - Could not identify launch activity: Default Activity not found after upgrading to Android Studio 4.0 在构建Kotlin项目时,Android Studio报告“无法识别启动活动:找不到默认活动” - Android Studio reports “Could not identify launch activity: Default Activity not found” when building Kotlin projects 运行项目时出现错误(无法识别启动活动:未找到默认活动) - Getting Error(Could not identify launch activity: Default Activity not found) While running project “无法识别启动活动:未找到默认活动” - Android Studio - 没有答案工作 - "Could not identify launch activity: Default Activity not found" - Android Studio - no answers working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM