我导入了一个Maven项目,它使用了Java 1.5,尽管我将1.6配置为我的Eclipse默认值Preferences->Java->Installed JREs
.
当我改变Maven项目以使用1.6 JRE时,它仍然存在从项目使用Java 1.5时遗留的构建错误(我在前面描述了这些构建错误:我在m2eclipse中构建错误但在命令行上没有使用maven2 - 我的m2eclipse是否配置错误?)
我要删除该项目并再次尝试,但我想确保这次它从一开始就使用Java 1.6来查看是否可以消除构建问题.
如何在导入项目时确保项目使用Java 1.6?
我无法构建使用CocoaPods的项目.我收到以下错误:
diff: /../Podfile.lock: No such file or directory
diff: Manifest.lock: No such file or directory error:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.`
Run Code Online (Sandbox Code Playgroud)
$ pod install
似乎工作正常,并将一个Pods
项目添加到我的工作区.我试过$ pod update
但这没有用.
似乎PODS_ROOT
没有设定.
Podfile:
platform :ios, '6.0'
workspace 'Example.xcworkspace'
xcodeproj 'example/Example.xcodeproj'
pod 'TestFlightSDK', '~> 1.3.0-beta.5'
pod 'TestFlightLogger', '~> 0.0.2'
pod 'CocoaLumberjack', '~> 1.6.2'
pod 'Reachability', '~> 3.1.0'
pod 'SBJson', '~> 3.2'
pod 'MKMapViewZoom', '~> 1.0.0'
Run Code Online (Sandbox Code Playgroud) 我在我的应用程序中使用了一个cocoa静态库.当我编译我的库时,我收到以下错误:
Shell Script invocation error:can't open input file:
/Users/sijuthomas/Library/Developer/Xcode/DerivedData/SCXML2-
bbttehupryhijphhjdiemcytkvgy/Build/Products/Debug-iphonesimulator/
libSCXMLParser.a (No such file or directory)
Command /bin/sh failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
android studio在构建执行时出现构建错误,其中包含以下"错误:执行任务失败":app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex"
我的app:build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.pdroid.foodieschoice"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.firebaseui:firebase-ui-auth:2.3.0'
testCompile 'junit:junit:4.12'
}
configurations.all {
resolutionStrategy {
force 'com.android.support:appcompat-v7:26.0.1'
force 'com.android.support:support-compat:26.0.1'
force 'com.android.support:support-core-ui:26.0.1'
force 'com.android.support:support-annotations:26.0.1'
force 'com.android.support:recyclerview-v7:26.0.1'
}
}
apply plugin: …
Run Code Online (Sandbox Code Playgroud) 尝试在Android Studio上构建项目时出现以下错误:
错误:方法无签名:com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask()适用于参数类型:(java.lang.String)值:[DevDebug]
如何解决呢?
android build-error crashlytics-android build-variant android-studio-3.3
使用Xcode 4.5.2并构建iOS4或更高版本,我在为我的设备构建时收到此消息(iOS上的iOS 6.0.1).我关闭对话框,然后重新启动我的设备上的应用程序似乎工作.我是iOS开发的新手,所以如果这是一个愚蠢的问题,我会事先提前注释.
预先感谢您的帮助.
我正在尝试为我的服务器编译deb包.当我去构建时,一切看起来都很好,直到它到达dh_usrlocal
构建停止并返回错误.问题是我第一次尝试这个,我真的不知道在哪里寻找问题.
这是我终端的输出,我还包括我在输出底部运行的命令.
make[2]: Leaving directory `/home/ian/Desktop/scst-2.1.0/src'
make[1]: Leaving directory `/home/ian/Desktop/scst-2.1.0'
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_installcatalogs
dh_installcron
dh_installdebconf
dh_installemacsen
dh_installifupdown
dh_installinfo
dh_pysupport
dh_installinit
dh_installmenu
dh_installmime
dh_installmodules
dh_installlogcheck
dh_installlogrotate
dh_installpam
dh_installppp
dh_installudev
dh_installwm
dh_installxfonts
dh_bugfiles
dh_lintian
dh_gconf
dh_icons
dh_perl
dh_usrlocal
dh_usrlocal: debian/scst/usr/local/include/scst/scst.h is not a directory
dh_usrlocal: debian/scst/usr/local/include/scst/scst_user.h is not a directory
dh_usrlocal: debian/scst/usr/local/include/scst/Module.symvers is not a directory
dh_usrlocal: debian/scst/usr/local/include/scst/scst_debug.h is not a directory
dh_usrlocal: debian/scst/usr/local/include/scst/scst_const.h is not a directory
dh_usrlocal: debian/scst/usr/local/include/scst/scst_sgv.h is not a directory
rmdir: failed to …
Run Code Online (Sandbox Code Playgroud) 任何人都可以帮助为什么会出错?
一切都很好,突然间出现了这个错误.
我用Google搜索但无法得到任何东西!请帮忙
错误:(7,41)找不到与给定名称匹配的资源(在'dialogCornerRadius'中,值为'?android:attr/dialogCornerRadius').
apply plugin: 'com.android.application'
//Add these lines
def Base_URL = '"' + WEBServiceBaseURL + '"' ?: '"Define BASE URL"';
def SMS_Base_URL = '"' + WEBServiceBaseSMSURL + '"' ?: '"Define SMS BASE URL"';
android.buildTypes.each { type ->
type.buildConfigField 'String', 'Base_URL', WEBServiceBaseURL
type.buildConfigField 'String', 'SMS_Base_URL', WEBServiceBaseSMSURL
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.bla.bla"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles …
Run Code Online (Sandbox Code Playgroud) 一直在尝试构建一个包含许多项目的解决方案,并不断出现重复出错的错误.
我已设法使构建部分成功但总是得到如下所示的错误:
C:\ Builds\1\MBS.Payments.Forms.Mvc\MBS Payment Forms MVC\Sources\MBS.Payments.Forms.Mvc\MBS.Forms.Payments.Web\MBS.Forms.Payments.Web.csproj(979) :找不到导入的项目"C:\ Program Files(x86)\ MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets".确认声明中的路径是否正确,以及该文件是否存在于磁盘上.
我已导航到生成错误的文件,其中突出显示此代码:
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
Run Code Online (Sandbox Code Playgroud)
目前我安装了Visual Studio 2010 Premium和Visual Studio 2012 Ultimate的评估版,我目前正在Visual Studio 2010中处理此应用程序.
下面是找到错误代码的代码块:
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
Run Code Online (Sandbox Code Playgroud)
请任何人都可以告知为什么会产生这个错误以及如何解决它.
我发现的与此问题相关的大多数帖子都是在毛伊岛仍处于测试阶段时创建的。
\n此问题仅影响 Android 版本!iOS 版本第一次就成功了。
在学习完这个 Microsoft Maui 教程后,我立即遇到了构建问题。错误是APT2260: resource mipmap/appicon and mipmap/appicon_round not found
。
在资源文件夹中没有appicon_round.svg
文件,所以我复制appicon.svg
并appicon_round.svg
尝试重建并得到相同的错误。
我删除android:roundIcon="@mipmap/appicon_round"
了AndroidManifest.xml
,并删除了appicon_round.svg
通过操作创建的文件copy
,但构建仍然失败。
即使确实appicon.svg
存在,我也android:icon="@mipmap/appicon"
从中删除了AndroidManifest.xml
删除了,并且重建成功了。\xe2\x80\x8d\xe2\x99\x82\xef\xb8\x8f
最后,我使用 Inkscape 创建appicon_round.svg
,将其添加到项目Resources/AppIcon
文件夹中,然后添加android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round"
回AndroidManifest.xml
文件中。以下构建成功。
首先要注意的是,虽然 Visual Studio 2022 for MacOS 确实创建了该文件,但当我创建多平台项目时,appicon.svg
它并没有生成。appicon_round.svg
对我来说,第二个“问题”是当我从 Android 清单文件中删除圆形 SVG 引用时,但构建仍然失败。
\n