这是输出日志:
1>Starting deploy API19-Intel_Atom ...
1>Starting emulator API19-Intel_Atom ...
1>C:\Users\Kyore\AppData\Local\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd API19-Intel_Atom -prop monodroid.avdname=API19-Intel_Atom
1>Hax is enabled
1>Hax ram_size 0x20000000
1>HAX is working and emulator runs in fast virt mode.
1>emulator: Listening for console connections on port: 5554
1>emulator: Serial number of this emulator (for ADB): emulator-5554
它只是卡在那一行,模拟器正常启动,它很快,我可以没有问题地打开/关闭东西,所以我必须按CTRL + BREAK来阻止它:
1>Process was cancelled
1>Start emulator API19-Intel_Atom was cancelled.
1>Process was cancelled
Build has been canceled.
我尝试重新启动计算机,重新启动VS,重新启动ADB服务器,减少了模拟器RAM和HAXM RAM,它总是会发生。
答案 0 :(得分:0)
尝试以管理员权限运行Visual Studio。
"以管理员身份运行"
如果这不起作用,请尝试
struct add {
private:
double c_;
public:
add(double& c): c_(c) {}
double operator()(double& x) {
return c_ + x;
}
};
struct mult {
private:
double c_;
public:
mult(double& c): c_(c) {}
double operator()(double& x) {
return c_ * x;
}
}
template<typename T1, typename T2>
struct pair {
private:
T1 t1_;
T2 t2_;
public:
pair(T1 t1, T2 t2): t1_(t1), t2_(t2) {}
double operator()(double& x) {
return t1_(x) + t2_(x);
}
}
add add2 = add(2);
mult mult3 = mult(3);
pair combined = pair(add2, mult3);
。right click on solution in VS -> Clean Solution
个文件夹,例如
bin/obj
,../MyXamarinProject/bin
../MyXamarinProject/obj