当我清除应用程序数据后,它不再起作用 [英] When I clear the app data it doesn't work anymore
问题描述
我正在使用xamarin表单制作应用程序,我在celphone上进行了测试,然后就可以找到apk.但是当我在android上清除数据时,我的应用程序无法再打开... 有人看到吗? 有什么问题吗?
I am doing an app using xamarin forms, I tested it on my celphone, then the apk is there. But when I Clear the data on android, my app doesn't open anymore... Did someone see that? What is the problem??
推荐答案
是的,这对于以调试模式构建的Xamarin.Android
应用程序是正常的.
Yes, that is normal for Xamarin.Android
apps built in debug mode.
如果您Clear Data
,则要删除用于调试的目录/文件:
If you Clear Data
you are removing directories/files that are used for debugging:
清除数据之前:
.:
drwxrwx--x 2 u0_a93 u0_a93 4096 2017-09-11 21:15 cache
drwxrwx--x 2 u0_a93 u0_a93 4096 2017-09-11 21:15 code_cache
drwxrwx--x 5 u0_a93 u0_a93 4096 2017-09-11 21:24 files
lrwxrwxrwx 1 root root 60 2017-09-11 21:15 lib -> /data/app/com.sushihangover.GeneticCancerDNAMapper-1/lib/x86
./cache:
./code_cache:
./files:
drwxrwxrwx 3 u0_a93 u0_a93 4096 2017-09-11 21:24 .__override__
drwxr-xr-x 2 u0_a93 u0_a93 4096 2017-09-11 21:24 .config
drwxr-xr-x 3 u0_a93 u0_a93 4096 2017-09-11 21:24 .local
./files/.__override__:
drwxrwxrwx 2 u0_a93 u0_a93 4096 2017-09-11 21:24 links
./files/.__override__/links:
lrwxrwxrwx 1 u0_a93 u0_a93 70 2017-09-11 21:24 libmonosgen-2.0.so -> /data/app/Mono.Android.DebugRuntime-1/lib/x86/libmonosgen-32bit-2.0.so
./files/.config:
./files/.local:
drwxr-xr-x 2 u0_a93 u0_a93 4096 2017-09-11 21:24 share
./files/.local/share:
清除数据后:
.:
lrwxrwxrwx 1 root root 60 2017-09-11 21:25 lib -> /data/app/com.sushihangover.GeneticCancerDNAMapper-1/lib/x86
发布版本不需要此数据,发布版本中Xamarin的运行时也不会使用Application.DataDir
.
This data is not needed for release builds and the Application.DataDir
is not used by Xamarin's runtime in release builds.
这篇关于当我清除应用程序数据后,它不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!