Program type already present问题应该怎么解决 5C

根据网上的搜索信息改成了27.1.1,但问题还没有解决,请问该怎么做?

apply plugin: 'com.android.application'
buildscript {
    repositories {
        mavenCentral()
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }

    allprojects {
         repositories {
            jcenter()
        }
    }
}
dependencies {
    implementation fileTree(include: '*.jar', dir: 'libs')
//    implementation project(':appcompat_v7')
//    implementation project(':recyclerview')
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation project(':recyclerview')
    debugCompile 'me.ele:uetool:1.0.15'
    releaseCompile 'me.ele:uetool-no-op:1.0.15'
    // if you want to show more attrs about Fresco's DraweeView
    debugCompile 'me.ele:uetool-fresco:1.0.15'
//
//    configurations {
//        all*.exclude group: 'com.android.support', module: 'support-v13'
//    }
}

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.2 '
    useLibrary 'org.apache.http.legacy'
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false

    lintOptions {
        abortOnError false
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),        'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'

            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
            jniLibs.srcDirs = ['jniLibs'];
        }
        androidTest .setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}

repositories {
    google()
} 

2个回答

应该是你添加了两个一样的但是不同命的jar包在libs里,我把其中一个删除后就解决了。

dependencies {
    classpath 'com.android.tools.build:gradle:3.1.3'
}

这个版本和你用的一致么?

languobeibei
张小贝_ 一致的
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Program type already present: android.support.v4.app.BackStackRecord$Op
运行代码的时候,出现了这个问题,build报错rn[code=java]Program type already present: android.support.v4.app.BackStackRecord$OprnMessagekind=ERROR, text=Program type already present: android.support.v4.app.BackStackRecord$Op, sources=[Unknown source file], tool name=Optional.of(D8)[/code]rn虽然不知道具体意思,感觉就是v4包冲突,可是我不会找在哪冲突的rn在网上疯狂搜解决办法,没有一个奏效rn给各位大佬呈上我的build.gradlern[code=text]apply plugin: 'com.android.application'rnrnandroid rn compileSdkVersion 27rn defaultConfig rn applicationId "com.example.asus.bs_im"rn minSdkVersion 16rn targetSdkVersion 27rn versionCode 1rn versionName "1.0"rn testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"rn //use legacy for android 6.0rn useLibrary 'org.apache.http.legacy'rn rn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rnrn rn rnrnrndependencies rn api fileTree(include: ['*.jar'], dir: 'libs')rn api 'com.android.support.constraint:constraint-layout:1.0.2'rn implementation 'com.android.support:appcompat-v7:27.1.1'rn implementation 'com.android.support:support-v4:27.1.1'rn implementation 'com.squareup.okhttp3:okhttp:3.8.1'rn implementation 'com.google.code.gson:gson:2.8.1'rn testImplementation 'junit:junit:4.12'rn androidTestImplementation 'com.android.support.test:runner:1.0.1'rn androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'rn api project(':easeui')rn configurations all*.exclude group: 'com.android.support', module: 'support-v13' rnrn[/code]rn整了两三个小时了,各种办法都试过了,希望有大佬来拯救一下我这个辣鸡
Android之关于json导包报错提示冲突的问题Program type already present(已解决)
1、遇到问题:导包后eclipse正常运行,Android studio报错 前几天在做一个项目,客户端要接受从服务器发过来的数据,服务器的小伙伴发给我的json格式的数据,我习惯在eclipse把小模块先测试一下再写进Android studio中去,关于接收并遍历json数据这块在eclipse上能够通过导包以完成相应的操作。 导入了以下包: commons-beanutils-1.8....
the type R is already defined 怎么解决
最近下载了一个源代码。但是导入之后,却提示the type R is already defined,怎么解决啊
Detected that FUSE is already present in the kernel
[size=14px][size=11px]我在安装fuse时候,按照安装步骤rn #./configure --with-kernel=/usr/src/linux-2.6.17-14mdv/rn 进行到这里时,提示我:rn checking if FUSE is configured in the kernel... yesrn configure:rn NOTE: Detected that FUSE is already present in the kernel, sorn NOTE: building of kernel module is disabled. To force buildingrn NOTE: of kernel module use the '--enable-kernel-module' option.rn 意思是说FUSE已经装入内核,但我输入rn #lsmod命令,却看不到fuse模块,rn #modprobe fuse 也不行,提示FATAL: Module fuse not found.rn 实在是搞不懂了,查了一天资料也没搞明白。rn rn 敬请巨侠和高手,牛人救命?[/size]rn
The type Employee is already defined?
[code=Java]package com.test.input;rnrnpublic class ParamTest rnrn public static void main(String[] args) rnrn System.out.println("Testing tripleValue"); rn double percent = 10; rn System.out.println("Before: percent="+percent); rn tripleValue(percent); rn System.out.println("After: percent="+percent); rn System.out.println("\nTesting tripleSalary:"); rn Employee harry = new Employee("Harry",50000); rn System.out.println("Before: salary="+harry.getSalary()); rn tripleSalary(harry); rn System.out.println("After: salary="+harry.getSalary()); rn System.out.println("\nTesting swap:"); rn Employee a = new Employee("Alice",70000); rn Employee b = new Employee("Bob",60000); rn System.out.println("Before: a = "+a.getName()+" "+"b = "+b.getName()); rn swap(a,b); rn System.out.println("After: a = "+a.getName()+" "+"b = "+b.getName()); rn rn rn rn public static void tripleValue(double x) rn rn x=3*x; rn System.out.println("End fo method: x=" +x); rn rn public static void tripleSalary(Employee x) rn rn x.raiseSalary(200); rn System.out.println("End of method: salary ="+x.getSalary()); rn rn rn public static void swap(Employee x,Employee y) rn rn Employee temp = x; rn x = y; rn y = temp; rn System.out.println("End of method: x="+x.getName()+" y="+y.getName()); rn rn rnrn class Employee //The type Employee is already defined.rn rn public Employee (String n, double s) rn rn name = n; rn salary = s; rn rn public String getName() rn rn return name; rn rn public double getSalary() rn rn return salary; rn rn rn public void raiseSalary (double byPercent) rn rn double raise = salary*byPercent/100; rn salary +=raise; rn rn private String name; rn private double salary; rnrn [/code]
already defined in 123View.obj怎么解决?
是这样的,假设我在234.h文件中定义了变量:int *InPut_Temp=new int[N_Max];rn 在234.cpp中使用了这个变量。同时我想在123.cpp中也是用这个变量,于是我在123.cpp中#include“234.h”rn 结果在编译时出现下面的错误:error LNK2005: "int * InPut_Temp" (?InPut_Temp@@3PAHA) already defined in 123View.objrn 应该怎么解决呢
还原精灵的问题应该怎么解决?
rn我是一个学生,在上机的时候,rn老师害我们破坏机子,所以在每个机子上都安了还原精灵,rn所以有许多问题不能解决,怎么能把这个密码给破了,rn我不是搞破坏,而是想好好学习,rn希望各路大侠能帮忙解决一下,OK!!!rn谢谢!!!
这样的问题应该怎么解决?
rn ">rn <%=rcs("content")%>rn rnrn我想把show(this.cells[0].id);函数放在asp的<%%>中进行调用不知怎么修改onclick事件,或是vbscript中的函数应该怎么写?
这个问题应该怎么解决???
现在有个这样的问题,比如我们的新闻,要增加,修改,删除,我可以记录增加的时间,最后一次修改的时间,因为我们的新闻经常要修改的,所以我要知道什么时候作过修改??修改过哪个地方??能把它记录下来,而且一下子就能知道。我是这样想的,可以用日志来记录它们,每次修改前把前面的保存下来,然后修改之后的再保存下来,这样就可以对比了,但是它不能一眼就看出来,我想可不可以这样,每次修改的时候,对比一下,增加了什么,修改了什么,删除了什么,把它记录下来,保存在备注这个字段里,但是该怎么对比呢????像这样行吗?还有别的其它的方法吗?
这个问题应该怎么解决?
[code=csharp]rnpublic void Arrange()rn rnrn int r=15;rn int c=16;rn for (int i=0;i
象这样的问题应该怎么解决?
想设计成这样的效果rn点击按键后rn弹出对话框rn想让其中的某些控件不可用为灰色rn应该怎么处理?rn因为对话框是个公用的rn所以不在对话框初始化的时候实现rn
这个问题应该怎么解决?
![图片说明](https://img-ask.csdn.net/upload/201501/16/1421415642_509272.jpg)
MIME type 问题的解决
出现背景:在angular项目最后的打包部署阶段,打包成一个dist静态文件夹,其内放置的是一些静态文件,然后在编辑器中直接运行index.html,出现以下错误:Refused to execute script from 'URL' because its MIME type ('text/html') is not executable, and strict MIME type check...
怎么解决The type initializer for 'System.Drawing.ToolboxBitmapAttribute'
The type initializer for 'System.Drawing.ToolboxBitmapAttribute' threw an except
'java' already exists该怎么解决
'java' already exists该怎么解决![图片说明](https://img-ask.csdn.net/upload/201801/29/1517191142_866528.png)rnrnsrc/test里面的东西怎么不显示出来
这应该怎么解决
用jcreator写java程序,提示错误:package org.apache.struts.action does not exist.我已经把struts.jar文件放到系统的classpath里面,为什么还找不到呢?还有就是我下的是struts1.1版本,教材里说的struts.tld文件根本没有,还有那个example也找不到啊?
eclipse 报The type xxx is already defined错误
各位老大,rn 问题是这样的,我现在在eclipse有2个资源包,一个src/java,另外一个是src/test,然后我在test包中添加了一个java包里[color=#FF0000]同路径且同名的类[/color],这时eclipse报错:The type xxx is already defined,请问这个要如何修改这个错误?各位有没有遇到过相同的情况,望指点,谢谢rnrnrn
应该怎么解决?
CListCtrl m_datalist;rnrnBOOL PrintListCtrlP(CListCtrl &list)rn............rnaa()rnrnPrintListCtrlP(m_datalist);rn//error C2664: 'PrintListCtrlP' : cannot convert parameter 1 from 'class CListCtrl *' to 'class CListCtrl &'rn
高分!HttpClient提交数据到服务器出现异常:Content-Length header already present
我用swt来做一些模拟淘宝注册的应用程序,页面是http://member1.taobao.com/member/register.jhtml,其中有一步是用HttpClient提交数据到服务器,来模拟人工在电脑上的操作。但是当提交数据到服务器上的时候,抛出了异常如下:rncom.wintaobao.utils.NetworkException: org.apache.http.ProtocolException: Content-Length header already presentrn at com.wintaobao.utils.HttpUtils.httpPostAsString(HttpUtils.java:290)rn at com.wintaobao.tbreg.core.impl.tb.TBRegister.reg(TBRegister.java:219)rn at com.wintaobao.tbreg.core.impl.TBHandler.reg(TBHandler.java:297)rn at com.wintaobao.tbreg.core.impl.RegisterHandler.run(RegisterHandler.java:92)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: org.apache.http.ProtocolException: Content-Length header already presentrn at org.apache.http.protocol.RequestContent.process(RequestContent.java:70)rn at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:290)rn at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:160)rn at org.apache.http.impl.client.DefaultClientRequestDirector.execute(DefaultClientRequestDirector.java:356)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:501)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:456)rn at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:422)rn at com.wintaobao.utils.HttpUtils.httpPostAsString(HttpUtils.java:279)rn ... 9 morernrn我怀疑是我的Post数据头封装有问题,但是我用这个封装的数据头来注册一些邮箱是没有问题的,我将封装好的数据头帖出来,大家帮忙看看:rnrnhm.setHeader("User-agent","Mozilla/4.0");rnhm.setHeader("Accept","*/*");rnhm.setHeader("Accept-Language", "zh-cn,zh;q=0.5");rnhm.setHeader("Accept-Encoding", "gzip,deflate");rnhm.setHeader("Accept-Charset", "gb2312,utf-8;q=0.7,*;q=0.7");rnhm.setHeader("Keep-Alive", "300");rnhm.setHeader("Connection", "keep-alive");rnhm.setHeader("Referer", referer);rnhm.removeHeaders("Content-Length");rnrnrn我现在是想解决在提交数据时不出现上面所说的异常,在这里先谢谢各位看这个问题,希望可以找到帮助,谢谢!rn
type 应该写什么??
rnrnrnrn如果要插入Flash 可以用 type="application/x-shockwave-flash"rnrnrn现在问题是 如果要插入 wmv、asf、等windows media 应该 type= 等于什么??
DX11 HOOK present 问题
一个游戏是DX11的 我HOOK了它的present后 来绘制我自己想的图形,rn一般正常游玩下,它都有把图形绘制出来 但是如果组队后 游戏的界面会多出一个组队的队友信息 导致我的图形不被显示了rn但是如果在游戏内调出菜单栏或者 游戏内自己有文字提醒时,我绘制的图形又出现了.真的很奇怪 帮忙解答rnrn正常模式下rn[b][img=https://img-bbs.csdn.net/upload/201709/23/1506137272_905085.jpg][/img][/b]rnrn组队模式下,游戏左上角会多出一个组队框出来 这时候我的图形就不绘制了rn[img=https://img-bbs.csdn.net/upload/201709/23/1506137306_508213.png][/img]rnrn如果我呼出游戏的菜单或者游戏内有文字提醒输出在游戏画布上时,我画的东西又出现了rn[img=https://img-bbs.csdn.net/upload/201709/23/1506137348_611082.png][/img]rnrn绘制图形代码rnRenderer::Renderer(ID3D11Device *direct3DDevice, const std::wstring &defaultFontFamily) :rn direct3DDevice(direct3DDevice),rn immediateContext(nullptr),rn inputLayout(nullptr),rn vertexShader(nullptr),rn pixelShader(nullptr),rn fontFactory(nullptr),rn fontWrapper(nullptr),rn defaultFontFamily(defaultFontFamily),rn maxVertices(1024 * 4 * 3)rnrn D3D11_INPUT_ELEMENT_DESC layout[] =rn rn "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 ,rn "COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 16, D3D11_INPUT_PER_VERTEX_DATA, 0 ,rn ;rnrn ID3DBlob *vsBlob = nullptr;rn ID3DBlob *psBlob = nullptr;rnrn direct3DDevice->GetImmediateContext(&immediateContext);rnrn throwIfFailed(FW1CreateFactory(FW1_VERSION, &fontFactory));rnrn renderList = std::make_unique(fontFactory, maxVertices);rnrn throwIfFailed(fontFactory->CreateFontWrapper(direct3DDevice, defaultFontFamily.c_str(), &fontWrapper));rnrnrn HMODULE hD3DCompiler = LoadLibraryA("D3DCompiler_43.dll");rn if (hD3DCompiler == NULL) rn ExitProcess(0);rn rnrn m_pfnD3DCompile = reinterpret_cast(GetProcAddress(hD3DCompiler, "D3DCompile"));rn if (m_pfnD3DCompile == NULL) rn ExitProcess(0);rn rnrn throwIfFailed(m_pfnD3DCompile(shader, std::size(shader), nullptr, nullptr, nullptr, "VS", "vs_4_0", 0, 0, &vsBlob, nullptr));rn throwIfFailed(m_pfnD3DCompile(shader, std::size(shader), nullptr, nullptr, nullptr, "PS", "ps_4_0", 0, 0, &psBlob, nullptr));rnrn throwIfFailed(direct3DDevice->CreateVertexShader(vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), nullptr, &vertexShader));rn throwIfFailed(direct3DDevice->CreatePixelShader(psBlob->GetBufferPointer(), psBlob->GetBufferSize(), nullptr, &pixelShader));rnrn throwIfFailed(direct3DDevice->CreateInputLayout(layout, static_cast(std::size(layout)), vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), &inputLayout));rnrn safeRelease(vsBlob);rn safeRelease(psBlob);rnrnrn D3D11_BLEND_DESC blendDesc;rnrn blendDesc.RenderTarget->BlendEnable = TRUE;rn blendDesc.RenderTarget->SrcBlend = D3D11_BLEND_SRC_ALPHA;rn blendDesc.RenderTarget->DestBlend = D3D11_BLEND_INV_SRC_ALPHA;rn blendDesc.RenderTarget->SrcBlendAlpha = D3D11_BLEND_ONE;rn blendDesc.RenderTarget->DestBlendAlpha = D3D11_BLEND_ZERO;rn blendDesc.RenderTarget->BlendOp = D3D11_BLEND_OP_ADD;rn blendDesc.RenderTarget->BlendOpAlpha = D3D11_BLEND_OP_ADD;rn blendDesc.RenderTarget->RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;rnrn throwIfFailed(direct3DDevice->CreateBlendState(&blendDesc, &blendState));rnrn D3D11_BUFFER_DESC bufferDesc;rnrn bufferDesc.Usage = D3D11_USAGE_DYNAMIC;rn bufferDesc.ByteWidth = sizeof(Vertex) * static_cast(maxVertices);rn bufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;rn bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;rn bufferDesc.MiscFlags = 0;rnrn throwIfFailed(direct3DDevice->CreateBuffer(&bufferDesc, nullptr, &vertexBuffer));rnrn bufferDesc = ;rnrn bufferDesc.Usage = D3D11_USAGE_DYNAMIC;rn bufferDesc.ByteWidth = sizeof(XMMATRIX);rn bufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER;rn bufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;rn bufferDesc.MiscFlags = 0;rnrn throwIfFailed(direct3DDevice->CreateBuffer(&bufferDesc, nullptr, &screenProjectionBuffer));rnrn D3D11_VIEWPORT viewport;rn UINT numViewports = 1;rnrn immediateContext->RSGetViewports(&numViewports, &viewport);rnrn //DbgPrintA("%f, %f, %f, %f, %f, %f", viewport.TopLeftX, viewport.Width, viewport.Height, viewport.TopLeftY, viewport.MinDepth, viewport.MaxDepth);rnrn projection = XMMatrixOrthographicOffCenterLH(viewport.TopLeftX, viewport.Width, viewport.Height, viewport.TopLeftY, viewport.MinDepth, viewport.MaxDepth);rnrn D3D11_MAPPED_SUBRESOURCE mappedResource;rn throwIfFailed(immediateContext->Map(screenProjectionBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource));rn rn std::memcpy(mappedResource.pData, &projection, sizeof(XMMATRIX));rn rn immediateContext->Unmap(screenProjectionBuffer, 0);rnrnrnrnrnrn ID3D11Texture2D* RenderTargetTexture;rn if (SUCCEEDED(g_pSwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (LPVOID*)&RenderTargetTexture)))rn rnrn direct3DDevice->CreateRenderTargetView(RenderTargetTexture, NULL, &pRenderTargetView);rn RenderTargetTexture->Release();rn rnrnrnrnRenderer::~Renderer()rnrn safeRelease(vertexShader);rn safeRelease(pixelShader);rn safeRelease(vertexBuffer);rn safeRelease(inputLayout);rn safeRelease(blendState);rn safeRelease(fontWrapper);rn safeRelease(fontFactory);rnrnrnvoid Renderer::begin()rnrn immediateContext->OMSetRenderTargets(1, &pRenderTargetView, NULL);rnrnrn UINT numViewports = 1;rn D3D11_VIEWPORT viewport;rn immediateContext->RSGetViewports(&numViewports, &viewport);rnrn projection = XMMatrixOrthographicOffCenterLH(viewport.TopLeftX, viewport.Width, viewport.Height, viewport.TopLeftY, viewport.MinDepth, viewport.MaxDepth);rnrn D3D11_MAPPED_SUBRESOURCE mappedResource;rn throwIfFailed(immediateContext->Map(screenProjectionBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource));rn rn std::memcpy(mappedResource.pData, &projection, sizeof(XMMATRIX));rn rn immediateContext->Unmap(screenProjectionBuffer, 0);rnrnrn immediateContext->VSSetShader(vertexShader, nullptr, 0);rn immediateContext->PSSetShader(pixelShader, nullptr, 0);rnrn immediateContext->OMSetBlendState(blendState, nullptr, 0xffffffff);rnrn immediateContext->VSSetConstantBuffers(0, 1, &screenProjectionBuffer);rnrn immediateContext->IASetInputLayout(inputLayout);rnrn UINT stride = sizeof(Vertex);rn UINT offset = 0;rn immediateContext->IASetVertexBuffers(0, 1, &vertexBuffer, &stride, &offset);rnrnrnvoid Renderer::end()rnrn //pRenderTargetView->Release();rn renderList->clear();rnrnrnvoid Renderer::draw(const RenderList::Ptr &renderList)rnrn if (std::size(renderList->vertices) > 0)rn rn D3D11_MAPPED_SUBRESOURCE mappedResource;rn throwIfFailed(immediateContext->Map(vertexBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mappedResource));rn rn std::memcpy(mappedResource.pData, renderList->vertices.data(), sizeof(Vertex) * std::size(renderList->vertices));rn rn immediateContext->Unmap(vertexBuffer, 0);rn rn rn std::size_t pos = 0;rnrn for (const auto &batch : renderList->batches)rn rn immediateContext->IASetPrimitiveTopology(batch.topology);rn immediateContext->Draw(static_cast(batch.count), static_cast(pos));rnrn pos += batch.count;rn rn rn fontWrapper->Flush(immediateContext);rn fontWrapper->DrawGeometry(immediateContext, renderList->textGeometry, nullptr, nullptr, FW1_RESTORESTATE);rnrnrnvoid Renderer::draw()rnrn draw(renderList);rnrnrnrnrnHOOK及画图初始化rnHRESULT __stdcall MyPresent(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags)rnrn rn static bool bInit = false;rn if (!bInit)rn rn g_pSwapChain = pSwapChain;rn pSwapChain->GetDevice(__uuidof(g_pDevice), (void**)&g_pDevice);rn renderer = std::make_unique(g_pDevice);rn bInit = true;rn rn renderer->begin();rn renderer->drawOutlinedRectA(20, 20, 300, 300, GColor::Blue(), GColor::Red());rn renderer->draw();rn renderer->end();rn HRESULT hRet = OLD_Present(pSwapChain, SyncInterval, Flags);rn return hRet;rnrnrn
Runtime Error! abnormal program termination.怎么解决?
microsoft visual c++runtime library rn Runtime Error.rnabnormal program termination.rn有没有高手在?求破。
fortran的问题:Symbol 'nx' at (1) already has basic type of INTEGER
下了一个用fortran写的MPI Benchmark,但是编译的时候报了这个错误:rnSymbol 'nx' at (1) already has basic type of INTEGERrn貌似说nx是基本的整数类型了?fortran整数类型中有这个保留字吗?
解决端口占用问题(port is already in use)
前言 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;端口占用问题几乎每个开发人员都会遇到,每次用每次查,下面来记录下解决过程,以便日后需要。 正文 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1、调出命令窗口 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;windows+R 组合键,调出命令窗口 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2、查找占用
java的这个问题应该怎么解决啊
比如a是一个类库,类库b会用到a,然后打包为b.jar,程序c会用到b.jarrnrnc还会用到另一个类库d,如果d中的包名类名等和a一样,并且路径在前面的话,b.jar会调用到d,这显然有问题,应该怎么解决啊
我很着急,这个问题应该怎么解决???
有a,b,c三个字段。rna代表部门,b代表时间(比如2002年4月6号),c代表部门领取的物品。rn一个部门领取一件物品就提交一次。rnrnrn一个部门可以在一天之内领取很多物品,那么就要显示出如下的领取表格:rnrn部门:...时间:...rnrn领取物品1...rn领取物品2...rn领取物品3...rn...rnrnrn那么怎么根据部门和时间显示出如上的内容呢?rnrn我很着急啊,大家帮我想想好吗?
大概是CString的问题,应该怎么解决呢?
我定义了一个链表rnstruct arNodernrnCString name; rnstruct it* itList; rnstruct arNode* next;rnrnrn使用的时候rnstruct arNode* temp = (struct arNode*)malloc(sizeof(struct arNode));rntemp->name = str; // CString str; ****rntemp->itList = NULL;rntemp->next = NULL;rnrn执行的时候到****处就报错,请问是为什么?怎么解决呢?谢谢!
这个简单的问题应该怎么解决?
rn rn rn rn rnrn关键在OnClick,程序运行报错的地方在于OnClick
关于数组问题,应该怎么解决?
rn $row[id] $row[content] $row[level] $row[order] ");rn$i++; rnrn?>rnrn问题如下:rnrn我把数据库中的信息1是按照上面的程序显示出来(已完成)2是想把这些信息(id、content、order、level)存在数组里。并且,点击每一行的(提交)按钮,可以把当前行content提交到数组中(修改数组中content的内容)。。rnrn第1点我已经做好,第2点有点晕,不会写了,大家说说应该弄?rnrn
如此List的问题应该怎么解决?谢谢!
[code=C#] List F = new List ;rn int[] f = new int[] 1, 2, 3 ;rn F.Add(f);rnrn f = new int[] 1, 2, 3 ;rn int iii = 0;rn if (F.Contains(f)) iii = 1; [/code]rnrn运行后,iii=0; rn应该怎么解决?谢谢!
大家看看这个问题应该怎么解决?
在JS里有一个量screen.width可以给出客户端的屏幕分辨率的值,我想在ASP中调用它,从而给不同分辨率的客户以不同的显示内容,请问大家这个该怎么办呢??
这个问题应该怎么解决,谢谢大家
Option Explicitrn Private dw As PictureBoxrn Private picpath As Stringrnrn Public Property Let pth(ByVal str As String)rn picpath = strrn End Propertyrn rnPublic Sub chuli()rn dw.Picture = LoadPicture(picpath)rn rnEnd Subrn为什么dw.Picture = LoadPicture(picpath)出现错误,这是放在类中的代码,谢谢
这个问题应该怎么解决啊!!
一个数组假如说是a[n];求平均值!!rn题目要求是要你输出格式是这个样子的!!rn3rn1.0 2.0 3.0rn2.000rn在整个代码当中,[color=#FF0000]这个3 该怎么输出呢?[/color]rn
请问这个asp的问题应该怎么解决?
现有一个asp的程序,它原来的页面title的写法是 分类信息最终内容页 结果每个最终的页面都是"分类信息最终内容页"的字样rnrn现在我想把title换成分类信息的标题的字样rn它的这段代码是rnrnrn 分类信息最终内容页rn rn rnrnrnrnrn rn rn rn rn rn rn rn <%rnrn'////////////////////////////////////////////// 输出相关网站 ////////////////////////////////////rnif not objRS.EOF then objRS.AbsolutePage = currpagernfor i = 1 to PAGESIZErn if objRS.EOF then exit forrn Response.Write(" ")rn Response.Write("信息标题:"&objRS("stationname")&"")rn Response.Write(" (发布时间:"& objRS("thisdate") &")")rn Response.Write(" ")rn Response.Write("信息类型:"&objRS("stationlang"))rn Response.Write(" 有效期:"&objRS("infotime"))rn Response.Write("天 信息被浏览:"&objRS("visitcount"))rn Response.Write("次 ")rnrn Response.Write(" ")rn Response.Write(" 信息内容 "&objRS("description"))rn Response.Write(" ")rn Response.Write("公司信息:"&objRS("siteabout"))rn Response.Write(" 公司名称:"&objRS("sitename"))rn Response.Write(" 联系信息 ")rn Response.Write("网站网址:"&objRS("stationurl")&"")rn Response.Write(" ")rn Response.Write("联系电话:"&objRS("sitearea"))rn Response.Write(" ")rn Response.Write("联系地址:"&objRS("whopost"))rn Response.Write(" 所在区域:"&objRS("infoqy"))rn Response.Write(" 联系人:"&objRS("infoname"))rn Response.Write(" ")rn Response.Write("E_mail:"&objRS("email"))rn Response.Write("")rn rn objRS.MoveNext()rnnextrn%>rn<%rn'////////////////////////////////////////////// 记录下这次浏览 ////////////////////////////////////rnid = Request.QueryString("id")rnif Trim(id) <> "" and IsNumeric(id) thenrn Set objRS = Server.CreateObject("ADODB.RecordSet")rn sql = "select * from stationinfo where id = " & idrn objRS.Open sql, objConn, 3, 3rn if not objRS.EOF thenrn objRS("visitcount").value = objRS("visitcount").value + 1rn objRS.Update()rn end ifrn objRS.Close()rn Set objRS = nothingrnend ifrn%>rn <%rnobjConn.Close()rnSet objRS = nothingrnSet objRS_path = nothingrnSet objConn = nothingrn%>rn rn rn rn rn rnrnrnrn这里面的 Response.Write("信息标题:"&objRS("stationname")&"") 应该就是输出标题内容的了,我想反它反映到每个tltle里面去,应怎么做呢?rnrn我试过 Response.Write("<b>信息标题:"&objRS("stationname")&"</b>") 这样不行,应该怎么写呢?我是初学者,请不要笑我噢,答完马上给分。
英文字母不回行的问题应该怎么解决?
abcdefghijklmnop.....rn一直打下去,显示出来时一下把表格撑的很大,如果解决使他像汉字一样自动回行呢?rn最好是通用的,任何IE版本浏览器都可以看到正常的效果。
数据结构应该怎么设计,解决下问题,谢谢~
定义一个流,流下有多个结点,结点下有多个用户,我如下定义:rn[code=C/C++]rn// 用户处理过程rntypedef struct Userrnrn char EmployeeCod[16]; // 用户编号rn char HandleState; // 处理状态rn char UserGrade; // 用户级别rnUSER;rnrn// 结点过程表rntypedef struct Nodernrn int NodeID; // 结点主键rn CArray user; // 结点下的用户信息rn char NodeState; // 结点状态 rnNODE;rnrn// 流信息rntypedef struct Flows rnrn int MessageAndFlow; // 主键rn char FlowCode[16]; // 流编号rn CArray node; // 流下的结点信息rn char RecordState; // 状态、暂时未用rnFLOW;rnFLOW tempFlow;rnNODE tempNode;rnUSER tempUser;rn[/code]rnrn目的是结点的个数可以动态增长,用户的个数也可以动态增长。但问题出来了,rntempNode.user.Add(tempUser);到可以成功,但是tempFlow.node.Add(tempNode);肯定是编译不通过了,我想问一下,想要实现我的需要我该如何定义这些数据结构呢?
数据窗口问题,应该怎么解决????
我用一个主窗口里数据窗口接收数据,在这个窗里有增加/修改功能(只能是一条记录),增加/修改时弹出另一个窗口,在另一个窗口增加/修改完数据后,想让主窗口重新接收(刷新)这一条记录,不想全部接收,因为数据量很大,显得慢,求助各位大虾应该怎么解决。
请问这种问题应该怎么解决?
系统是BS结构,数据库用的SQL Server 2000,我的数据需要拿笔记本要现场采集,那么我要是把服务器装在笔记本上,采集的时候就不能用了。要是另用一个服务器,数据采集回来还要再导入很麻烦。能不能两个服务器,笔记本采数据之后,笔记本的服务器更新另一个?我自己都晕了。请高手指点下这种情况下该怎么做?万分感谢!
ora-00095是什么问题,应该怎么解决?
我查了《error message》,但是正好没有ora-00095,不知道为什么?
weblogic10和spring2.0冲突问题应该怎么解决?
这是后台报的错误,我查了下,根据网上一些网友的意见,weblogic发布的时候自带的库很多会与开发的库冲突,需要手工修改加载顺序.但是应该怎么修改呢?请不吝赐教!!!rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chargeManager' defined in file [E:\eclipse\workspace\ostaoa\web\WEB-INF\rnclasses\context\applicationContext-manager.xml]: Cannot resolve reference to bearnn 'transactionManager' while setting bean property 'transactionManager'; nestedrnexception is org.springframework.beans.factory.BeanCreationException: Error crearnting bean with name 'transactionManager' defined in file [E:\eclipse\workspace\ornstaoa\web\WEB-INF\classes\context\applicationContext-db.xml]: Cannot resolve refrnerence to bean 'sessionFactory' while setting bean property 'sessionFactory'; nernsted exception is org.springframework.beans.factory.BeanCreationException: Errorrn creating bean with name 'sessionFactory' defined in file [E:\eclipse\workspace\rnostaoa\web\WEB-INF\classes\context\applicationContext-db.xml]: Invocation of inirnt method failed; nested exception is org.hibernate.HibernateException: Errors inrn named queries: all_keys_like, all_keys_with_type_like, all_keys, all_keys_with_rntypern at org.springframework.beans.factory.support.BeanDefinitionValueResolverrn.resolveReference(BeanDefinitionValueResolver.java:229)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolverrn.resolveValueIfNecessary(BeanDefinitionValueResolver.java:114)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:801)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.populateBean(AbstractAutowireCapableBeanFactory.java:592)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanrnFactory.createBean(AbstractAutowireCapableBeanFactory.java:392)rn Truncated. see log file for complete stacktrace
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表

相似问题

4
求助各位大神,导入别人的项目报DexArchiveMergerException错误和(图)
0
Program type already present: com.tencent.a.a.a.a.a,应如何解决?
4
安装 tensorflow cpu 版出问题, 求解决办法。 谢谢
1
C语言字符串的排序问题如何解决?
2
如何解决ImportError: DLL load failed: The specified procedure could not be found
1
将windows里面写的js代码复制到mac电脑里用webstrom运行时出现Cannot run program错误怎么解决?
2
用管理员运行的cmd无法删除program files和其他系统文件夹下的程序
3
为什么tensorboard会出现这种问题?要怎么解决?请各位帮帮忙
0
遇到Program type already present: android.support.v4.app.BackStackRecord$Op这个问题
1
iOS 2.3.1 被拒 怎么解决
2
asp .net中gridview导入excel路径出现问题怎么解决。
0
数据结构里面的Double Queue问题,怎么使用的C语言的程序编写的代码的过程的当时有效解决的
0
蜜蜂寻蜂巢的问题,要求使用C编程语言的工具如何才能通过编程实现代码的,如何解决的方式
2
cannot import name 'imread' from 'scipy.misc'
1
Android使用Jna出现程序类型已存在
0
扑克牌的牌技问题,怎么利用C语言的程序的设计方法对此问题加以解决的
0
计算软件的打补丁的计算的问题,怎么才能使用C语言的程序的设计的编写的过程的方式来解决的办法
0
计算软件的打补丁的计算的问题,怎么才能使用C语言的程序的设计的编写的过程的方式
0
使用单词构成的字谜的问题,怎么采用C语言的程序编写的法则来实现的代码来解决