草庐IT

other-class

全部标签

安卓错误 "unable to find explicit activity class"

我有一个包含多个包的android项目。在这种情况下,包的结构是com.WAPP.SetLocation是包含我要运行的Activity的包。在我的list中,com.WAPP被认为是基础包:我的Activity在我的list中声明为:mainScreenActivity显示正常,因为它位于com.WAPP包中。但是当我尝试运行setLocationActivity时,我得到了无法找到明确的类错误。以下是我的Intent参数:Intenti=newIntent();i.setClassName("com.WAPP.SetLocation","com.WAPP.SetLocation.s

android - 错误类型 3 : Activity Class {. ..} 不存在

AndroidManifest:.....错误:Starting:Intent{act=android.intent.action.MAINcat=[android.intent.category.LAUNCHER]cmp=com.m.e/.Splash}Errortype3Error:Activityclass{com.m.e/com.m.e.Splash}doesnotexist.注意:.Splash确实存在。 最佳答案 在build.gradle中,行:applyplugin:'android-library'需要更改为:ap

android - 错误类型 3 : Activity Class {. ..} 不存在

AndroidManifest:.....错误:Starting:Intent{act=android.intent.action.MAINcat=[android.intent.category.LAUNCHER]cmp=com.m.e/.Splash}Errortype3Error:Activityclass{com.m.e/com.m.e.Splash}doesnotexist.注意:.Splash确实存在。 最佳答案 在build.gradle中,行:applyplugin:'android-library'需要更改为:ap

android - com.google.firebase.database.DatabaseException : Calls to setPersistenceEnabled() must be made before any other usage of FirebaseDatabase instance

当我尝试在fIREBASE中设置持久性时遇到问题,有人可以解释一下如何去做吗?protectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_meal_details);if(mDatabase==null){mDatabase=FirebaseDatabase.getInstance().getReference();FirebaseDatabase.getInstance().setPersistenceEnable

android - com.google.firebase.database.DatabaseException : Calls to setPersistenceEnabled() must be made before any other usage of FirebaseDatabase instance

当我尝试在fIREBASE中设置持久性时遇到问题,有人可以解释一下如何去做吗?protectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_meal_details);if(mDatabase==null){mDatabase=FirebaseDatabase.getInstance().getReference();FirebaseDatabase.getInstance().setPersistenceEnable

javascript - react native 错误 : Element type is invalid: expected a string or a class/function but got: object

我收到了这个错误,我在修复这个问题时遇到了很多麻烦。我在这里尝试做的是有3个不同的屏幕,并有一个导航到每个屏幕的标签栏。这是我的索引:importReact,{Component}from'react';import{AppRegistry,Navigator,StyleSheet,View,Text}from'react-native';importNavfrom'./app/components/Nav';importScreenfrom'./app/Screen';importTabsfrom'react-native-tabs'importSwitchViewfrom'./Sw

javascript - react native 错误 : Element type is invalid: expected a string or a class/function but got: object

我收到了这个错误,我在修复这个问题时遇到了很多麻烦。我在这里尝试做的是有3个不同的屏幕,并有一个导航到每个屏幕的标签栏。这是我的索引:importReact,{Component}from'react';import{AppRegistry,Navigator,StyleSheet,View,Text}from'react-native';importNavfrom'./app/components/Nav';importScreenfrom'./app/Screen';importTabsfrom'react-native-tabs'importSwitchViewfrom'./Sw

android - 库 com.google.firebase :firebase-iid is being requested by various other libraries at [[17. 0.0,17.0.0]],但解析为 16.2.0

我今天开始收到这个错误,昨天一切正常,gradle或firebase版本没有变化Thelibrarycom.google.firebase:firebase-iidisbeingrequestedbyvariousotherlibrariesat[[17.0.0,17.0.0]],butresolvesto16.2.0.Disablethepluginandcheckyourdependenciestreeusing./gradlew:app:dependencies.Isawthatyesterdaywasupdateingoogle-servicesplugin,这可能是导致问题的

android - 库 com.google.firebase :firebase-iid is being requested by various other libraries at [[17. 0.0,17.0.0]],但解析为 16.2.0

我今天开始收到这个错误,昨天一切正常,gradle或firebase版本没有变化Thelibrarycom.google.firebase:firebase-iidisbeingrequestedbyvariousotherlibrariesat[[17.0.0,17.0.0]],butresolvesto16.2.0.Disablethepluginandcheckyourdependenciestreeusing./gradlew:app:dependencies.Isawthatyesterdaywasupdateingoogle-servicesplugin,这可能是导致问题的

解决 Android 开发过程中 出现 Duplicate class(包冲突)

1、现在大部分的项目都是支持Androidx的,所以出现Duplicate的时候先把gradle.properties文件中添加参数,支持使用AndroidXandroid.useAndroidX=trueandroid.enableJetifier=true2、有些*.jar/*.aar不支持AndroidX的时候,将上面的禁用然后再排除AndroidX的引用 configurations{all*.excludegroup:'androidx.*.*'...}有很多,搜索一下 androidx就能找到3、排除了Androidx的冲突后,包还有冲突 类似v4.com这种1、先看看冲突的是哪个