android studio3.1.4 建C++新项目时cmake报的问题

Build command failed.

Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Configuring incomplete, errors occurred!

Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-".
Open File

Build command failed.

Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Configuring incomplete, errors occurred!

Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-".
Open File

4个回答

图片说明图片说明

ndk和cmake都换过了也不行,最后在虚拟机的ubuntu系统下的android studio和家里的windows下as是正常使用的,可能这个电脑的系统有关图片说明

SDK环境配置上存在错误

mohoward
mohoward ndk.dir=D\:\\software\\AndroidSdk\\ndk-bundle sdk.dir=D\:\\tool\\AndroidSdk
一年多之前 回复
mohoward
mohoward 能说详细一点吗?普通项目是正常的,建c++的cmake项目就不行了
一年多之前 回复
mohoward
mohoward 我本来就做过as的c++开发,这些简单的基础是知道的,不是这些原因
一年多之前 回复

只贴出报错信息是不够的,要提供项目目录结构,目前环境的相关配置,还有CMakeLists.txt文件内容才好定位问题。

mohoward
mohoward 新建的一个项目,没有加任何其他东西
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
android studio3.1.4 建C++新项目时cmake报的问题

Build command failed. Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app\.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja} -- Configuring incomplete, errors occurred! Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-". Open File Build command failed. Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app\.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja} -- Configuring incomplete, errors occurred! Parse error. Expected a command name, got unquoted argument with text "%TSD-Header-". Open File

Android studio下载的3.1.2版本新建项目就报错

![图片说明](https://img-ask.csdn.net/upload/201807/18/1531912871_726751.png) 我大概百度了一下,遇到的问题跟我都不太一样,主要最后那部分不同,网上说删除一段代码但是这版本的studio根本就没那段代码... ![图片说明](https://img-ask.csdn.net/upload/201807/18/1531913039_358758.png)

android studio 更新到3.1.4 遇到了的问题求助

![图片说明](https://img-ask.csdn.net/upload/201808/12/1534084874_198025.png) ![图片说明](https://img-ask.csdn.net/upload/201808/12/1534084879_282755.png)

AndroidStudio对应的Gradle插件从哪来?存放目录在哪?

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } 我想问的就是classpath 'com.android.tools.build:gradle:2.1.2'这里的gradle插件是从哪来的?是从jcenter下载的吗?如果是的话下载下来后存在哪呢?还有如果是从jcenter下载的,那我的版本编译服务器不能连外网岂不是编译不起来了嘛?望熟悉gradle的大侠指点一下。。。我当前用的gradle版本是https\://services.gradle.org/distributions/gradle-2.10-all.zip,但是我在这个gradle的libs里找遍了也没找到2.1.2这个插件

升级as3.1.4后kotlin-android-extensions不生效

如题, 配置都正常, as3.1.3使用的时候没问题,就是在线更新patch后 每个类的代码会爆红, 会自动导包 ``` import R.id.* ``` **而不是** ``` import kotlinx.android.synthetic.main.xxx.* ``` 虽然不影响build和打包 ,但是看起来很不舒服: **已尝试过: ** 1. 卸载kotlin插件重新安装 2. 清空缓存重启as 3. 重新ConfigKotlin in Project 4. Clean Project --> Rebuild 5. 开启Enable offline --> Rebuild 6. 重启电脑 没辙了...求大神相助!!! ![图片说明](https://img-ask.csdn.net/upload/201808/10/1533868357_965196.jpg)

Android 提示获取不到pom文件

新手入门安卓,公司的网ping dl.google.com 可以ping通,但是在下载依赖时 一直出错,尝试了网上的各种解决办法,都不行,求大神帮忙![图片说明](https://img-ask.csdn.net/upload/201809/18/1537247924_730670.png)![图片说明](https://img-ask.csdn.net/upload/201809/18/1537248014_892311.png)

Android使用DataBinding要运行的时候出现这样的错误要怎么解决

![图片说明](https://img-ask.csdn.net/upload/201812/15/1544867721_324897.png) ![图片说明](https://img-ask.csdn.net/upload/201812/15/1544867864_841598.png)

android 新建项目加toolbar菜单不显示,求高手解答

android 3.1.4 minSdkVersion 14 菜单就是不显示 onCreateOptionsMenu中打LOG无提示 , ``` @Override public boolean onCreateOptionsMenu(Menu menu) { Log.i(TAG, "onCreateOptionsMenu: test"); ``` ... ...

jbpm3.1.4整合ssh

整合过程中出现了如下异常: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from file D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\project.myeclipse.bak\WEB-INF\classes\com\broadengate\jbpm\hbm\CustomLongClass.hbm.xml Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from file D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\project.myeclipse.bak\WEB-INF\classes\com\broadengate\jbpm\hbm\CustomLongClass.hbm.xml at org.hibernate.cfg.Configuration.addFile(Configuration.java:319) at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:662) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:684) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.hibernate.MappingException: class org.jbpm.context.exe.CustomLongClass not found while looking for property: id at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:74) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276) at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144) at org.hibernate.cfg.Configuration.add(Configuration.java:669) at org.hibernate.cfg.Configuration.addFile(Configuration.java:309) ... 39 more Caused by: java.lang.ClassNotFoundException: org.jbpm.context.exe.CustomLongClass at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100) at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70) ... 46 more 急求解决方案!!! 相关jar包我也导了: bsh-1.3.0.jar bsf.jar jbpm-webapp-3.1.4.jar jbpm-identity-3.1.4.jar jbpm-3.1.4.jar spring-modules-jbpm31.jar 不知道什么原因!!! [b]问题补充:[/b] 刚找了org.jbmp.context.ext下面没有CustomLongClass 这个类,是少了jar包还是jar包有问题? 我的联系方式: sunlei927824@163.com QQ:308059183 谢谢~~

Insert_batch Error Codeigniter 3.1.4

<div class="post-text" itemprop="text"> <h1>A PHP Error was encountered</h1> <p>Severity: Notice Message: Array to string conversion Filename: database/DB_query_builder.php Line Number: 1539 Backtrace: File: D:\xampp\htdocs\visio\application\models\projectmodel.php Line: 56 Function: insert_batch</p> <h3>A Database Error Occurred</h3> <p>Error Number: 1064</p> <p>You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Array' at line 1</p> <p>INSERT INTO <code>paymentsize</code> () VALUES ('8'), ('2017-06-07'), ('Residential'), ('L'), ('120'), ('200'), ('10000'), ('15000'), ('30'), ('12000'), ('40'), ('1000'), ('60'), ('125000'), ('10'), ('10000'), ('15000'), ('20000'), Array</p> <p>Filename: D:/xampp/htdocs/visio/system/database/DB_driver.php</p> <p>Line Number: 691</p> <p>My Controller is:</p> <pre><code>public function store_payment() { $post = array(); $post = $this-&gt;input-&gt;post(NULL,TRUE); $count=count($this-&gt;input-&gt;post('pro_id')); echo CI_VERSION; for($i = 0; $i &lt; $count; $i++){ $post []= array( 'pro_id' =&gt; $post['pro_id'][$i], 'date_add' =&gt; $post['date_add'][$i], 'category' =&gt; $post['category'][$i], 'type' =&gt; $post['type'][$i], 'size' =&gt; $post['size'][$i], 'counts' =&gt; $post['counts'][$i], 'booking' =&gt; $post['booking'][$i], 'confirmation' =&gt; $post['confirmation'][$i], 'confirm_days' =&gt; $post['confirm_days'][$i], 'allocation' =&gt; $post['allocation'][$i], 'allocate_days' =&gt; $post['allocate_days'][$i], 'm_installment' =&gt; $post['m_installment'][$i], 'month' =&gt; $post['month'][$i], 'y_instalment' =&gt; $post['y_instalment'][$i], 'halfyear' =&gt; $post['halfyear'][$i], 'leveling' =&gt; $post['leveling'][$i], 'demarcation' =&gt; $post['demarcation'][$i], 'possession' =&gt; $post['possession'][$i] ); } $this-&gt;projects-&gt;add_payment($post); } </code></pre> <p>My Model is:</p> <pre><code>public function add_payment($array) { // echo "&lt;pre&gt;"; // print_r($array); // exit(); return $this-&gt;db-&gt;insert_batch('paymentsize',$array); } </code></pre> <p>My View is:</p> <pre><code>&lt;tbody&gt; &lt;input type="hidden" name="pro_id[]" value="&lt;?= $project-&gt;pro_id; ?&gt;" &gt; &lt;tr&gt; &lt;td width="14%"&gt; &lt;div class="col-lg-10"&gt; &lt;div class="form-group form-black label-floating is-empty"&gt; &lt;label class="control-label" style="margin-top: -10px;"&gt;Date&lt;/label&gt; &lt;input type="date" name="date_add[]" value="&lt;?php echo date('Y-m-d'); ?&gt;" class="form-control" &gt; &lt;span class="material-input"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;td width="14%"&gt; &lt;div class="col-lg-10"&gt; &lt;div class="form-group form-black label-floating is-empty"&gt; &lt;label class="control-label"&gt;Plot Category&lt;/label&gt; &lt;select name="category[]" class="form-control"&gt; &lt;option&gt; &lt;/option&gt; &lt;option&gt;Residential&lt;/option&gt; &lt;option&gt;Commercial&lt;/option&gt; &lt;/select&gt; &lt;span class="material-input"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;td&gt; </code></pre> <p>if i use print_r it shows all array elements with respective Values.. but it is not inserting in DB Table.. my view has a table with 17 text fields... i just mention few for an Example... waiting for help.... :) Thank you in advance...</p> </div>

CodeIgniter 3.1.4 - 实现evert的Sitemap PHP库

<div class="post-text" itemprop="text"> <p>I'm trying to get evert's <a href="https://github.com/evert/sitemap-php" rel="nofollow noreferrer">sitemap-php library</a> working in CodeIgniter using the vague instructions that I found in another <a href="https://stackoverflow.com/questions/40624981/how-to-create-sitemap-for-static-and-dynamic-pages">StackOverflow post</a>, but I'm not having any success. I've got a few questions that should be enough to point me in the right direction when answered:</p> <ol> <li><p>Should the makeSitemap() function be added to the default controller?</p></li> <li><p>If evert's Sitemap.php file is placed in the libraries folder (instead of nested in the SitemapPHP folder like the example), can it be loaded properly using the standard CI syntax?</p> <p>$this-&gt;load-&gt;library('sitemap');</p></li> <li><p>Where does the sitemap folder belong?</p></li> </ol> <p>I'd greatly appreciate any insight on these questions. Unless someone beats me to it, I'll be sure to post a code-based solution once I get this working.</p> </div>

Symfony 3.1.4 clearCache脚本需要generator-bundle dev包

<div class="post-text" itemprop="text"> <p>On a new project generated with the "symfony new" command, when running composer install with the --no-dev parameter, I'm getting the following error:</p> <pre><code>remote: &gt; symfony-scripts: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache remote: remote: Fatal error: Class 'Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle' not found in D:\home\site\wwwroot\app\AppKernel.php on line 25 remote: ..... remote: Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception remote: remote: remote: [RuntimeException] remote: An error occurred when executing the ""cache:clear --no-warmup"" command: remote: Fatal error: Class 'Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle' not found in D:\home\site\wwwroot\app\AppKernel.php on line 25 remote: . remote: remote: remote: An error has occurred during web site deployment. remote: Exception trace: remote: Composer install failed remote: () at D:\home\site\wwwroot\vendor\sensio\distribution-bundle\Composer\ScriptHandler.php:307 remote: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at D:\home\site\wwwroot\vendor\sensio\distribution-bundle\Composer\ScriptHandler.php:138 remote: Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:255 remote: Composer\EventDispatcher\EventDispatcher-&gt;executeEventPhpScript() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:209 remote: Composer\EventDispatcher\EventDispatcher-&gt;doDispatch() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:80 remote: Composer\EventDispatcher\EventDispatcher-&gt;dispatch() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:193 remote: Composer\EventDispatcher\EventDispatcher-&gt;doDispatch() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:95 remote: Composer\EventDispatcher\EventDispatcher-&gt;dispatchScript() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/Installer.php:297 remote: Composer\Installer-&gt;run() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/Command/InstallCommand.php:135 remote: Composer\Command\InstallCommand-&gt;execute() at phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/console/Command/Command.php:259 remote: Symfony\Component\Console\Command\Command-&gt;run() at phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/console/Application.php:847 remote: Symfony\Component\Console\Application-&gt;doRunCommand() at phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/console/Application.php:192 remote: Symfony\Component\Console\Application-&gt;doRun() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/Console/Application.php:231 remote: Composer\Console\Application-&gt;doRun() at phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/console/Application.php:123 remote: Symfony\Component\Console\Application-&gt;run() at phar://D:/home/site/wwwroot/composer.phar/src/Composer/Console/Application.php:104 remote: Composer\Console\Application-&gt;run() at phar://D:/home/site/wwwroot/composer.phar/bin/composer:43 remote: require() at D:\home\site\wwwroot\composer.phar:24 </code></pre> <p>It seems that the clearCache post-install-cmd is requiring the sensio/generator-bundle package. However, it is listed in the require-dev section in the default composer.json I have copied below.</p> <pre><code>{ "name": "benjat/hellosf", "license": "proprietary", "type": "project", "autoload": { "psr-4": { "": "src/" }, "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] }, "autoload-dev": { "psr-4": { "Tests\\": "tests/" } }, "require": { "php": "&gt;=5.5.9", "symfony/symfony": "3.1.*", "doctrine/orm": "^2.5", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2", "symfony/swiftmailer-bundle": "^2.3", "symfony/monolog-bundle": "^2.8", "symfony/polyfill-apcu": "^1.0", "sensio/distribution-bundle": "^5.0", "sensio/framework-extra-bundle": "^3.0.2", "incenteev/composer-parameter-handler": "^2.0" }, "require-dev": { "sensio/generator-bundle": "^3.0", "symfony/phpunit-bridge": "^3.0" }, "scripts": { "symfony-scripts": [ "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" ], "post-install-cmd": [ "@symfony-scripts" ], "post-update-cmd": [ "@symfony-scripts" ] }, "extra": { "symfony-app-dir": "app", "symfony-bin-dir": "bin", "symfony-var-dir": "var", "symfony-web-dir": "web", "symfony-tests-dir": "tests", "symfony-assets-install": "relative", "incenteev-parameters": { "file": "app/config/parameters.yml" } } } </code></pre> <p>I haven't updated the installer generated code yet, and my AppKernel registerBundles method contains the following:</p> <pre><code>public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new AppBundle\AppBundle(), ]; if (in_array($this-&gt;getEnvironment(), ['dev', 'test'], true)) { $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } </code></pre> <p>Is that a bug in the clearCache script? in the default composer.json file? In the default registerBundles method? In my expectation?</p> </div>

Spring3.2和Spring Security3.1共存的问题?

有一个新开始的项目,想用spring3.2和spring security3.1.4,但是再maven中指定了各个spring组件的版本后,spring-core-3.1.4的版本也被包含进来了。请问有没有解决办法?难道用了spring security3.1.4后就只能用spring3.1.4了吗?

wampserver 127.0.0.1打不开项目

https://segmentfault.com/q/1010000009786224

ORA-01436: CONNECT BY loop in user data

初始化树形结构失败 用的是Groovy+grails 请大神出来帮帮我! org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [getTree] of controller [lggmr.analysis.ReadrateController] caused exception: Runtime error executing action at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.executeAction(AbstractGrailsControllerHelper.java:236) ~[grails-web-2.2.5.jar:2.2.5] at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:197) ~[grails-web-2.2.5.jar:2.2.5] at org.codehaus.groovy.grails.web.servlet.mvc.AbstractGrailsControllerHelper.handleURI(AbstractGrailsControllerHelper.java:118) ~[grails-web-2.2.5.jar:2.2.5] at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:72) ~[grails-web-2.2.5.jar:2.2.5] at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) ~[spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE] at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:328) ~[grails-web-2.2.5.jar:2.2.5] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) [tomcat-embed-core-7.0.42.jar:7.0.42] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) [tomcat-embed-

Codeigniter数据库连接错误和db_select

<div class="post-text" itemprop="text"> <p>I'll try to be brief and to the point.</p> <ol> <li>I'm using Codeigniter 3.1.4. with HMVC</li> <li>Working perfectly on localhost with <code>'pconnect' = FALSE;</code></li> <li>Problem at live server through shared hosting.</li> <li><code>max_user_connections = 10</code>. Set by the Hosting company.</li> <li>Also added <code>mysql.allow_persistent = Off</code> to php.ini file.</li> <li>Gives the error <code>Message: mysqli::real_connect(): (42000/1203): User &lt;user&gt; already has more than 'max_user_connections' active connections Filename:mysqli/mysqli_driver.php Line Number: 201</code> </li> <li><code>Line 201</code> is calling <code>mysqli::real_connect</code> within db_connect function of mysqli_driver</li> <li>CI's official statement is "...CodeIgniter intelligently takes care of closing your database connections".</li> </ol> <p>With <code>pconnect = FALSE;</code> and CI's "intelligent" closing of database connections, I don't see what should be causing the problem.</p> <p><strong>EDIT</strong></p> <ul> <li>Was previously loading database groups through <code>$this-&gt;load-&gt;database('group', TRUE);</code> in each model (only one such call per model).</li> <li>Tried resolving above error through autoloading 'database' library and setting <code>$this-&gt;db-&gt;db_select('dbName');</code> in respective <em>controllers+models</em> but it's not always selecting the correct database when <em>controller+model</em> is loaded.</li> <li>Does anyone know how <code>db-&gt;db_select()</code> works?</li> </ul> <p>Any ideas would be great help. Thanks.</p> </div>

CodeIgniter env基于MY_类扩展

<div class="post-text" itemprop="text"> <p>I'm working on a CodeIgniter 3.1.4 project and am aware that I can use <code>MY_</code> prefixed library classes to extend the system libraries.</p> <p>This is great and works as expected, but I'd like to be able to determine the class being used dependant on either the current environment, or by DotEnv values <em>(I've already got a DotEnv library working fine)</em>.</p> <p>The production site uses the servers 'sendmail' to send email, I would like to be able to use MailGun (or another) in development, allowing me to overriding the <code>'to'</code> value just before sending to allow for safe development utilising a production like dataset.</p> <p><em>Much like is able to be done in Laravel where you can use <code>.env</code>'s <code>MAIL_DRIVER=mailgun</code> and <code>MAIL_TO_ADDRESS=x@y.com</code> to force all outbound mail to one address for development.</em></p> <p>I'm sure it must be possible, but my lack of experience with CI and where I should be implementing this into the framework is letting me down.</p> </div>

Eclipse 在线升级 Gradle 错误

An error occurred while collecting items to be installed session context was:(profile=D__Program_Java_Eclipse_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.gradleware.tooling.client,0.19.2.v20170713071601 No repository found containing: osgi.bundle,com.gradleware.tooling.model,0.19.2.v20170713071601 No repository found containing: osgi.bundle,com.gradleware.tooling.utils,0.19.2.v20170713071601 No repository found containing: osgi.bundle,org.eclipse.buildship.branding,2.1.1.v20170713-0944 No repository found containing: osgi.bundle,org.eclipse.buildship.core,2.1.1.v20170713-0944 No repository found containing: osgi.bundle,org.eclipse.buildship.stsmigration,2.1.1.v20170713-0944 No repository found containing: osgi.bundle,org.eclipse.buildship.ui,2.1.1.v20170713-0944 No repository found containing: osgi.bundle,org.gradle.toolingapi,3.5.0.v20170713071601 No repository found containing: org.eclipse.update.feature,org.eclipse.buildship,2.1.1.v20170713-0944

poi3.1解析excel的问题

FileInputStream fis = new FileInputStream(file); //file为上传文件的路径 HSSFWorkbook wb = new HSSFWorkbook(new POIFSFileSystem(fis)); //报错行 错误信息 org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:191) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:115) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:205) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:257) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:238) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:179) ... 94 more Caused by: java.lang.ArrayIndexOutOfBoundsException at org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:132) at org.apache.poi.hssf.record.RecordInputStream.readByte(RecordInputStream.java:137) at org.apache.poi.hssf.record.HeaderRecord.fillFields(HeaderRecord.java:76) at org.apache.poi.hssf.record.Record.<init>(Record.java:56) at org.apache.poi.hssf.record.HeaderRecord.<init>(HeaderRecord.java:58) ... 99 more

spring4 与swagger ui整合问题

spring4 与swagger ui整合后,文件长传按钮不出现,并且接口重复,我的是maven工程,整合参考的是网上的spring3与swagger ui整合的,求大神指导

软件测试入门、SQL、性能测试、测试管理工具

软件测试2小时入门,让您快速了解软件测试基本知识,有系统的了解; SQL一小时,让您快速理解和掌握SQL基本语法 jmeter性能测试 ,让您快速了解主流来源性能测试工具jmeter 测试管理工具-禅道,让您快速学会禅道的使用,学会测试项目、用例、缺陷的管理、

计算机组成原理实验教程

西北工业大学计算机组成原理实验课唐都仪器实验帮助,同实验指导书。分为运算器,存储器,控制器,模型计算机,输入输出系统5个章节

Java 最常见的 200+ 面试题:面试必备

这份面试清单是从我 2015 年做了 TeamLeader 之后开始收集的,一方面是给公司招聘用,另一方面是想用它来挖掘在 Java 技术栈中,还有那些知识点是我不知道的,我想找到这些技术盲点,然后修复它,以此来提高自己的技术水平。虽然我是从 2009 年就开始参加编程工作了,但我依旧觉得自己现在要学的东西很多,并且学习这些知识,让我很有成就感和满足感,那所以何乐而不为呢? 说回面试的事,这份面试...

winfrom中嵌套html,跟html的交互

winfrom中嵌套html,跟html的交互,源码就在里面一看就懂,很简单

玩转Python-Python3基础入门

总课时80+,提供源码和相关资料 本课程从Python零基础到纯Python项目实战。内容详细,案例丰富,覆盖了Python知识的方方面面,学完后不仅对Python知识有个系统化的了解,让你从Python小白变编程大牛! 课程包含: 1.python安装 2.变量、数据类型和运算符 3.选择结构 4.循环结构 5.函数和模块 6.文件读写 7.了解面向对象 8.异常处理

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:csdn590)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

基于VHDL的16位ALU简易设计

基于VHDL的16位ALU简易设计,可完成基本的加减、带进位加减、或、与等运算。

MFC一站式终极全套课程包

该套餐共包含从C小白到C++到MFC的全部课程,整套学下来绝对成为一名C++大牛!!!

利用Verilog实现数字秒表(基本逻辑设计分频器练习)

设置复位开关。当按下复位开关时,秒表清零并做好计时准备。在任何情况下只要按下复位开关,秒表都要无条件地进行复位操作,即使是在计时过程中也要无条件地进行清零操作。 设置启/停开关。当按下启/停开关后,将

董付国老师Python全栈学习优惠套餐

购买套餐的朋友可以关注微信公众号“Python小屋”,上传付款截图,然后领取董老师任意图书1本。

Python可以这样学(第一季:Python内功修炼)

董付国系列教材《Python程序设计基础》、《Python程序设计(第2版)》、《Python可以这样学》配套视频,讲解Python 3.5.x和3.6.x语法、内置对象用法、选择与循环以及函数设计与使用、lambda表达式用法、字符串与正则表达式应用、面向对象编程、文本文件与二进制文件操作、目录操作与系统运维、异常处理结构。

计算机操作系统 第三版.pdf

计算机操作系统 第三版 本书全面介绍了计算机系统中的一个重要软件——操作系统(OS),本书是第三版,对2001年出版的修订版的各章内容均作了较多的修改,基本上能反映当前操作系统发展的现状,但章节名称基

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

SEIR课程设计源码与相关城市数据.rar

SEIR结合学报与之前博客结合所做的一些改进,选择其中三个城市进行拟合仿真SEIR结合学报与之前博客结合所做的一些改进,选择其中三个城市进行拟合仿真SEIR结合学报与之前博客结合所做的一些改进,选择其

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

Java面试题大全(2020版)

发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

定量遥感中文版 梁顺林著 范闻捷译

这是梁顺林的定量遥感的中文版,由范闻捷等翻译的,是电子版PDF,解决了大家看英文费时费事的问题,希望大家下载看看,一定会有帮助的

GIS程序设计教程 基于ArcGIS Engine的C#开发实例

张丰,杜震洪,刘仁义编著.GIS程序设计教程 基于ArcGIS Engine的C#开发实例.浙江大学出版社,2012.05

人工智能-计算机视觉实战之路(必备算法+深度学习+项目实战)

系列课程主要分为3大阶段:(1)首先掌握计算机视觉必备算法原理,结合Opencv进行学习与练手,通过实际视项目进行案例应用展示。(2)进军当下最火的深度学习进行视觉任务实战,掌握深度学习中必备算法原理与网络模型架构。(3)结合经典深度学习框架与实战项目进行实战,基于真实数据集展开业务分析与建模实战。整体风格通俗易懂,项目驱动学习与就业面试。 建议同学们按照下列顺序来进行学习:1.Python入门视频课程 2.Opencv计算机视觉实战(Python版) 3.深度学习框架-PyTorch实战/人工智能框架实战精讲:Keras项目 4.Python-深度学习-物体检测实战 5.后续实战课程按照自己喜好选择就可以

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

去除异常值matlab程序

数据预处理中去除异常值的程序,matlab写成

用verilog HDL语言编写的秒表

在秒表设计中,分模块书写。用在七段数码管上显示。输入频率是1KHZ.可以显示百分秒,秒,分。如要显示小时,只需修改leds里的代码和主模块代码。改程序以通过硬件电路验证。完全正确。

[透视java——反编译、修补和逆向工程技术]源代码

源代码。

相关热词 c# 不能序列化继承类 c# char* 调用 c# 开发dll模板 c#添加控件到工具箱 c#控制台组合数 编程计算猴子吃桃问题c# c# wpf 背景透明 随机抽取号码软件c# c# 开发环境 c# 属性和字段
立即提问