Android开发执行Build APK命令报错 10C

在使用Android Studio进行开发时,引入了C++代码,使用CMake进行了配置,现在在执行Build APK命令时,报了标题的错 'neon_vector_type' attribute is not supported for this target,请问该如何解决

4个回答

装了插件了吗,新建项目的时候勾选了才/C++了吗?
在app.gradle文件中配置一下:
defaultConfig{
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
}
}

}

externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}

装了插件了吗,新建项目的时候勾选了才/C++了吗?
在app.gradle文件中配置一下:
defaultConfig{
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
}
}

}

externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}

装了插件了吗,新建项目的时候勾选了才/C++了吗?
在app.gradle文件中配置一下:
defaultConfig{
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
}
}

}

externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}

新建项目的时候勾选了才/C++了吗?
在app.gradle文件中配置一下:
defaultConfig{
externalNativeBuild {
cmake {
cppFlags "-frtti -fexceptions"
}
}

}

externalNativeBuild {

cmake {
path "CMakeLists.txt"
}
}

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
执行gulp build报错
问题与分析 在执行gulp build报错如下: D:\coding\Resume\Resumes>gulp build gulp build[5628]: src\node_contextify.cc:628: Assertion `args[1]->IsString()' failed. D:\coding\Resume\Resumes>gulp -v [22:00:13]...
执行openstack命令报错
[root@server ~]# openstack extension list --networkMissing value auth-url required for auth plugin passwordRCA:没有source环境变量导致。在家的时候操作是没有问题的,因为我按文档export了环境变量,如下。export OS_PROJECT_DOMAIN_NAME=Defaultex...
Maven help命令报错build failure
![图片说明](https://img-ask.csdn.net/upload/201811/12/1542021051_792846.png)rn mvn -v成功rn 镜像也换过了rn 代理也试过了rn 都无法解决该问题
build报错
在CSDN上下了一个SMDK2440A的6.0 BSP包,编译时出现:rnrnError - variable "PCI_BUS_ROOT" not definedrnError on D:\WINCE600\OSDesigns\ARM\ARM\RelDir\smdk2440a_ARMV4I_Debug\postproc\platform.reg:475rn[$(PCI_BUS_ROOT)\Template\GenericIDE] rnmakeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).rnmakeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).rnrn "PCI_BUS_ROOT" 在哪定义的一直没有找到?我的系统时WINCE 6.0 没有装Windows Embedded CE 6.0 R2 rn请问大侠是什么问题?谢谢!
执行mvn install 命令报错
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.172s [INFO] Finished at: Sat Aug 24 00:08:34 CST 2013 [INFO] Final Memor...
ubuntu 执行 docker 命令报错
ubuntu 执行 docker 命令报错
执行 ipvsadm 命令时,报错
执行 ipvsadm 命令时,报错: Can't initialize ipvs: No space left on device Are you sure that IP Virtual Server is built in the kernel or as module? 产生原因:咋一看,很容易被错误信息带偏。其实是没有权限的问题。 解决方案:在命令前,添加 sudo ...
在root用户执行hive命令报错
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x         a
eclipse maven build 命令执行启动项目
eclipse中的maven管理项目,启动项目命令配置。maven build。这里仅仅作为我的一个备忘记录,能帮助到大家更好!请大神们轻敲,指下留情!
docker build Dockfile不能执行cd命令
Dockerfile:rnRUN apt-get -yqq updaternRUN apt-get install makernRUN mkdir /var/redisrnCOPY redis-3.0.5.tar.gz /var/redis/rnRUN tar -zxvf /var/redis/redis-3.0.5.tar.gzrnRUN cd /var/redis/redis-3.0.5/ && make && make installrnrnrnADD redis-tools.deb /var/redisrnRUN cd /var/redis && dpkg -i redis-tools.debrnrnrnVOLUME ["/var/lib/redis","/var/log/redis/"]rnrnEXPOSE 6379rnCMD[]rn错误:rn[img=https://img-bbs.csdn.net/upload/201511/29/1448782587_42859.png][/img]rnrn请教为什么会找不到cd命令?
Eclipse Maven Build命令执行无效解决方法
现象右键项目- run as – maven install 时,控制台没有任何响应  原因 Jdk没有配置maven的执行参数解决方法1.打开eclipse的window菜单:2.接着选定maven项目使用的jdk,点击edit按钮,出现如下页面:3.在红色框中添加如图所示的一行代码,代码如下: -Dmaven.multiModuleProjectDirectory=D:\\apache-mav...
Android开发APK反编译工具
在学习android 开发的时候,我们经常回尝试使用到别人的apk,希望能了解别人怎么编写的代码,于是想要一个能实现其反编译的软件,将软件反编译出来,查看其代码。
android apk开机执行shell 命令
一、三个文件 AndroidManifest.xml BootCompletedReceiver.java ShellExe.java 二、代码实现 AndroidManifest.xml android:sharedUserId="android.uid.system" <receiver android:name="com.bsm_wqy.va
Android开发——减小APK大小
0.前言APK的大小对APP的加载速度,使用内存大小和消耗功率多少有一定影响。如何减小APK的大小对于Android开发者是一个永恒的话题。那么首先就来了解一下APK的组成结构。 1.APK的组成结构META-INF:包含CERT.SF和CERT.RSA签名文件,和MANIFEST.MF清单文件。assets:包含APP的assets资源,代码中可以通过AssetManager对象访问。res:包
Android开发之apk覆盖
本人安卓开发新手,平常经常看一下公司老油条们的提交记录,稍稍总结一下: 1、在packages\apps\下把要移植的app包复制过去 2、在移植包的Android.mk中加入 LOCAL_OVERRIDES_PACKAGES := 你要替换的app的LOCAL_PACKAGE_NAME 3、在zrevo\common中的PRJPreConfig_common.mk中加入$(call in
android开发命令
发送恢复出厂设置命令am broadcast -a android.intent.action.MASTER_CLEAR
android ndk(r16版本)安装后build apk报错
![图片说明](https://img-ask.csdn.net/upload/201712/07/1512619800_839640.png)nError:(81) Android NDK: Application targets deprecated ABI(s): mips64 armeabi mips nError:(82) Android NDK: Support for these ABIs will be removed in a future NDK release
How to build .apk into system image?
现在有一个.apk安装包,我想把这个.apk放进Android source code,一起build到模拟器image里,rn请教高手该如何实现?
android开发apk进行系统签名工具
本工具可以对debug的apk文件进行系统签名,实现一些系统级app的功能,例如:app静默升级,修改系统时间,时区等功能
gradle build报错解决方案
今天在导入butterknife的时候莫名其妙报错误,清单文件错误,好不容易看大神搞定,然而原理并不清楚,待以后一并处理原理,先将问题记录 Error:Execution failed for task ':app:processArmDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support...
ant的build文件报错。。
[code=Java]rnBuildfile: F:\tempsvn\adapter_cmccinterface\build.xmlrncleanup:rninit:rn [echo] Begin building BPM cmcc.adapter.webcommons in January 25 2011 use Apache Ant version 1.6.5 compiled on June 2 2005rncompile:rn [javac] Compiling 7 source files to F:\tempsvn\adapter_cmccinterface\dest\classesrnrnBUILD FAILEDrnF:\tempsvn\adapter_cmccinterface\build.xml:78: F:\tempsvn\adapter_cmccinterface\$lib.folder not found.rnrnTotal time: 766 millisecondsrn[/code]rn这个是什么原因啊?lib文件夹不存在吗?
build 报错日志查看
命令:gradlewprocessDebugResources--stacktrace 可以查看更加详细的build日志 便于分析错误日志
Notification.Builder的build方法报错
Notification.Builder的build方法报错rn提示我 The method build() is undefined for the type Notification.Builderrn真是奇了怪了rn而且 半个小时以前rn还没问题 rn也clean了 也重启了rn求大神支招儿
Android开发把项目打包成apk
Android开发把项目打包成apk
android开发的webapp--资源分析系统apk
android手机客户端webapp开发技术,java编写的项目。
Android开发之adb命令安装apk的问题
众所周知,有时候我们只有apk安装包不一定可以直接在AS跑起来,所以有了adb命令安装使用adb命令的前提:1.你的首先配置adb的环境变量查看环境变量配置方法2.配置好后请检查是否配置成功?如下图看到Android Debug Bridge version 1.0.39即可配置成功3.开始使用adb命令安装apk打开cmd,输入adb install apk所在路径即可,输入回车即可安装还可以使...
AIR Android开发--APK结构详解
转自:http://www.fluidea.cn/blog/archives/308 了解Android SDK开发的朋友都知道,在Android应用中,界面显示由Activity对象来完成,一个程序包含一个或多个Activity,Activity之间可以相互调用,也可以和其他程序中的Activity交互。那么,使用air开发的Android应用和原生程序有什么区别?是否包含Activity...
Android开发把项目打包成apk .
做完一个Android项目之后,如何才能把项目发布到Internet上供别人使用呢?我们需要将自己的程序打包成Android安装包文件--APK(Android Package),其后缀名为".apk"。将APK文件直接上传到Android模拟器或Android手机中执行即可进行安装。Android系统要求具有其开发者签名的私人密钥的应用程序才能够被安装。生成数字签名以及打包项目成APK都可...
android开发笔记之APK大小优化
蛋痛引发的争论晚上,实在是无聊的蛋痛,就用自己的APK查看了一下手机中所有应用软件的信息,忽然看到一个APK,/system/priv-app/ApeTaleEditor/ApeTaleEditor.apk: 63M此APK有63M,这明显是不正常的,是此APK太大了,我比较了手机中的191个APK应用,APK大小超过60M的就二个应用,一个此应用,还有一个是谷歌的Chrome应用。/system/
Android Build Project报错
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app.detail:preBuild'.rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)rn at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)rn at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)rn at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)rn at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)rn at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)rn at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)rn at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)rn at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)rn at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)rn at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)rnCaused by: groovy.lang.MissingPropertyException: Could not get unknown property 'libraries' for task ':app.detail:processDebugManifest' of type com.android.build.gradle.tasks.MergeManifests.rn at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:83)rn at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:61)rn at com.android.build.gradle.tasks.MergeManifests_Decorated.getProperty(Unknown Source)rn at net.wequick.gradle.AppPlugin$_hookPreDebugBuild_closure7.doCall(AppPlugin.groovy:229)rn at net.wequick.gradle.AppPlugin.hookPreDebugBuild(AppPlugin.groovy:221)rn at net.wequick.gradle.AndroidPlugin$_afterEvaluate_closure5.doCall(AndroidPlugin.groovy:105)rn at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:681)rn at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:656)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)rn ... 27 more
cordova build android 报错
之前的java,javac,java -version,android -h命令都有用,rn执行cordova build android时就报错rn[img=https://img-bbs.csdn.net/upload/201612/10/1481355199_578577.png][/img]
as 常见的build报错
Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing process /Users/yangfan/software/as/build-
maven build报错解决方案
 maven打包成war时,报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web_nanchang: Error assembling WAR: webxml attribute is required 原因:找不到web.xm
WinCE5.0 Build 报错
系统用的是S3C2440rnrnbuild log 报错如下:rnrnBUILD_MARKER:LINK_STATIC_LIBRARY_ENDrnCopying fulllibc.*rnNMAKE : fatal error U1073: don't know how to make 'showerr'rnStop.rnrn请问各位高手是何原因啊?
laravel 在linux下执行artisan 命令时报错
本地和服务器执行php-v看看都是什么版本的
centos7中执行yum命令报错
报错如下: [root@localhost /]# yum clean all 已加载插件:fastestmirror, langpacks File contains no section headers. file: file:///etc/yum.repos.d/mssql-server.repo, line: 1 '<html>\r\n' 解决办法: # 删除y...
安装redis-执行make命令报错解决方法
问题原因:未安装GCCcd hiredis && make static make[3]: 进入目录“/opt/redis-3.0.4/deps/hiredis” gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c make[3]: gcc:命令未找到 ma
Linux上执行krpano命令报错
赋予目录对应权限。chmod 777 /dir chmod -R 777 /dir 目录下所有子文件都将有对应权限 报错内容: Caused by: java.io.IOException: error=13, 权限不够 at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.&l...
system执行 imp命令导入的时候报错
错误信息如下 :rnrnrnExport file created by EXPORT:V09.02.00 via conventional pathrnimport done in ZHS16GBK character set and AL16UTF16 NCHAR character setrnIMP-00017: following statement failed with ORACLE error 3113:rn "BEGIN "rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATIO"rn "N_CONTEXT_OBJ, 'SYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATION_CONTEXT_OBJ, 'DBA',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATIO"rn "N_CONTEXT_OBJ, 'AQ_ADMINISTRATOR_ROLE',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATIO"rn "N_CONTEXT_OBJ, 'MDSYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATIO"rn "N_CONTEXT_OBJ, 'CTXSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_EVALUATIO"rn "N_CONTEXT_OBJ, 'WKSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_ANY_EVALU"rn "ATION_CONTEXT, 'SYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_ANY_EVALU"rn "ATION_CONTEXT, 'DBA',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_ANY_EVALU"rn "ATION_CONTEXT, 'MDSYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_ANY_EVALU"rn "ATION_CONTEXT, 'CTXSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.CREATE_ANY_EVALU"rn "ATION_CONTEXT, 'WKSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUA"rn "TION_CONTEXT, 'SYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUA"rn "TION_CONTEXT, 'DBA',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUA"rn "TION_CONTEXT, 'MDSYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUA"rn "TION_CONTEXT, 'CTXSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.ALTER_ANY_EVALUA"rn "TION_CONTEXT, 'WKSYS',FALSE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.DROP_ANY_EVALUAT"rn "ION_CONTEXT, 'SYS',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.DROP_ANY_EVALUAT"rn "ION_CONTEXT, 'DBA',TRUE);"rn ""rn "SYS.DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(SYS.DBMS_RULE_ADM.DROP_ANY_EVALUAT"rn "ION_CONTEXT, 'MDSYS',TRUE);"
maven 执行创建web项目命令时报错
1、命令如下: mvn archetype:generate -DgroupId=com.inspur.test -DartifactId=WebAppStydy -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false 2、错误信息如下:The goal you specified requires a proj...
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数