更改程序包名称后,Flutter App无法正常工作 [英] Flutter App is not working after changing package name
问题描述
我正在尝试释放我的apk,只是将com.example包名称更改为我自己的com.[Androidnameif.xml]文件和app/build.gradle文件中的[appname].[appname],但是现在我的应用程序停止了我一运行它就可以工作.知道可能是什么问题吗?我还有其他地方需要更改软件包名称吗?我也在使用firebase,并使用新的程序包名称生成了一个新的google-services.json文件.
I am trying to release my apk and just changed the com.example package name to my own com.[companynamehere].[appname] in the AndroidManifest.xml file and app/build.gradle file, however now my app stops working as soon as i run it. any idea what might be the problem? is there anywhere else i need to change the package name? I'm also using firebase and i generated a new google-services.json file with the new package name.
推荐答案
您还需要在Mainactivity.java
You also need to update your package name in: Mainactivity.java
更新:如果启用了Kotlin,则应在Mainactivity.kt中更新软件包名称
Update: If you have enabled Kotlin, you should update your package name in Mainactivity.kt
这篇关于更改程序包名称后,Flutter App无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!