从Play商店下载我的应用并转到“设置”->“应用”->“ myApp”->“存储”后,由于某种原因,它将有4.59 mb的数据。即使我根本没有打开应用程序。我必须点击清除数据,否则我的应用程序将无法运行。一旦我清除了数据,就可以正常运行,直到下一次更新为止,然后我必须再次进行。
Logcat说
audit: type=1701 audit(1560151257.983:14744): auid=4294967295 uid=10521 gid=10521 ses=4294967295 subj=u:r:untrusted_app:s0:c9,c258,c512,c768 pid=31263 comm="UnityMain" exe="/system/bin/app_process64" sig=11
一次logcat却这样说
/AndroidRuntime: FATAL EXCEPTION: UnityMain
Process: com.myord.myapp, PID: 28413
java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000000000000012f
Build fingerprint: 'samsung/crownqltesq/crownqltesq:9/PPR1.180610.011/N960USQS1CSD1:user/release-keys'
Revision: '11'
pid: 28413, tid: 28431, name: UnityMain >>> com.myorg.myapp <<<
x0 0000000000000000 x1 0000000000000000 x2 0000007b48d66be8 x3 0000000000000000
x4 0000007b48d66b28 x5 0000000000000004 x6 0000007b59722d80 x7 00000000013e61f7
x8 0000000000000001 x9 7a0a23fc6ec12b11 x10 0000007b44beb000 x11 0000007b4552407c
x12 00000000000005e7 x13 0000000000000001 x14 0000000000000008 x15 aaaaaaaaaaaaaaab
x16 0000007b464635e0 x17 0000007be651da20 x18 0000000000000001 x19 0000007b46510000
x20 0000000000000000 x21 0000000000000000 x22 0000007b4675dab8 x23 0000007b46514000
x24 0000007b45fc35d8 x25 0000007b467402d8 x26 0000007b46020104 x27 0000007b45fbeef7
x28 0000007b48d67430 x29 0000007b48d66c50 x30 0000007b45841454
sp 0000007b48d66c20 pc 0000007b45841468 pstate 0000000060000000
at [vdso].(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.(:0)
at libil2cpp.il2cpp_init(il2cpp_init:44)
at libunity.(:0)
at libunity.(:0)
at libunity.(:0)
at libunity.(:0)
at base.(:0)
最后我也看到了
Channel is unrecoverably broken and will be disposed!
答案 0 :(得分:1)
在清单中添加它。
#include<iostream>
#include<cstring>
using namespace std;
class person
{
char name[20];
int age;
public:
void fill_data(char name2[],int age2)
{
strcpy(name,name2);
age=age2;
}
void display_data(void)
{
cout<<name<<endl;
cout<<age<<endl;
}
};
int main()
{
person p1;
p1.fill_data("tushar",30);
p1.display_data();
return 0;
}
这对我有用!