Error type 3: Activity Class {...} dose not exist【解决方案】

android studio运行安卓程序的时候,安装成功之后,但是应用自动启动,必须手动启动,控制台报错:Error type 3: Activity Class {...} dose not exist

解决方法:我们需要辩解build.gradle 文件:

将:

apply plugin: ‘android-library‘

改为:

apply plugin: ‘android‘

(如果还有问题的话,可以试试修改为apply plugin: ‘com.android.application‘)

时间: 2024-07-29 18:43:52

Error type 3: Activity Class {...} dose not exist【解决方案】的相关文章

react-native run-android Starting: Intent Error type 3 Error: Activity class does not exist

使用"react-native run-android"命令运行android应用时,如果常常出现如下错误: Starting the app (/home/xxx/soft/sdk//platform-tools/adb shell am start -n xxx/.MainActivity)- Starting: Intent { cmp=xxx/.MainActivity } Error type 3 Error: Activity class {xxx/xxx.MainActi

Command line option syntax error.type Command /? for help

电脑装思维导图的时候,报错显示"Command line option syntax error.Type Command /? for help."就查了一下,原来是系统没有C++2005,需要安装,就上网下载了一个vcredist_x86.exe,但是双击安装,仍然出现这个错误. 没办法,接着上网查吧,是什么原因呢?网上说是因为该文件安装不支持中文安装路径,然后我就把文件夹改成了英文名称的,但是双击还是出现这个错误.可能有的人用这种方法成功了吧~本着没有解决不了的问题的思想,接着奋

Syntax error, type parameters are only available if source level is 1.5

出处: Syntax error, type parameters are only available if source level is 1.5 当我的eclipse使用jdk1.6的时候,创建泛型类,系统会提示错误: “Set project compiler compliance settings to '1.5'” “Syntax error, type parameters are only available if source level is 1.5” 这时候需要改动两个地方

安装SQL Servre2000时提示“command line option syntax error! type command /? for help”

问题: 当程序正在安装ms数据访问组件时,弹出错误提示框:command line option syntax error,type command/? for help,点击确定继续:到了程序正在安装HTML帮助时,弹出标题为html help 1.32 update错误提示框:command line option syntax error,type command/? for help,点击确定继续:程序开始复制文件,复制完后弹出错误提示框:无法找到动态连接库sqlunirl.dll(sq

There was an unexpected error (type=Not Found, status=404).

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Mon Jan 22 09:30:31 CST 2018 There was an unexpected error (type=Not Found, status=404). No message available 网址Url  输错了, 我的具体如下 http://l

异常:Error resolving template "xxx", template might not exist or might not be accessible...解决办法

简单表述:控制台出现了这个异常:Error resolving template "xxx", template might not exist or might not be accessible by any of the configured Template Resolvers 解决办法:在报出这个异常的方法上添加注解@ResponseBody 讲一下个人理解:这个注解就是用来区别 方法的返回值字符串 和 视图解析器解析的页面名字字符串 的冲突的,举个例子:方法A返回的字符串s

Error resolving template [xxx], template might not exist or might not be exist

Springboot+thymeleaf+mybatis 抛Error resolving template [xxx], template might not exist的异常 原因是我们在pom.xml增加的以下内容导致的,以下内容中src/main/resources这项中没有把你的html文件包括进去,懒一点的做法(<include>**/*.*</include>), <resources> <resource> <targetPath>

ERROR 1176 (42000): Key &#39;XXX&#39; doesn&#39;t exist in table &#39;XXX&#39;报错处理

MySQL5.7对sql语句强制使用索引查询时报错如下: 解决:这里的id字段是表的主键,查看别人的经验贴得知是语法错误,参考链接https://stackoverflow.com/questions/19205004/key-emp-no-doesnt-exist-in-table-employees ,当强制索引是主键时sql语句应这样写 mysql> SELECT COUNT(UA.id) AS tp_count FROM  ck_user_audit UA RIGHT JOIN ck_u

安装vcredist_x86,报错提示:Command line option syntax error.Type Command /?for Help

在安装loadrunner11的时候,提示缺少vc2005_sp1_with_atl_fix_redist组件,可以直接点击确定进行安装组件,或者进入loadrunner目录下lrunner\Chs\prerequisites\vc2005_sp1_redist手动安装vcredist_x86.exe,这时候出现了报错:Command line option syntax error.Type Command /?for Help 解决方案: 修改环境变量 修改完之后就可以正常安装啦 参考地址: