我在Mac的Visual Studio中有一个Xamarin.Forms项目。当我尝试构建Android项目时,出现以下错误消息。
“您正在将支持armeabi,armeabi-v7a,x86
ABI 的应用程序部署到不兼容的ABI设备armeabi,armeabi-v7a,x86
。您应该创建一个与您的应用程序ABI之一匹配的仿真器,或者将其添加armeabi,armeabi-v7a,x86
到您要为其构建应用程序的ABI 列表中。”
此消息声称该移动应用程序支持armeabi,armeabi-v7a,x86
。该消息还声称设备ABI是armeabi,armeabi-v7a,x86
。
这些都是一样的。由于它们相同,如何不被支持?
我无法部署到任何仿真器配置。
我看到了一些与ABI相关的问题,但都与无关Xamarin
。由于所有这些都是在Xamarin和Visual Studio for Mac的上下文中发生的,因此任何解决方案都必须特定于此。
我正在为一个包含 Android 应用程序的大型项目使用 MSBuild 开发持续集成管道。该应用程序包括一些自动生成的文件,需要定期集成到项目中。这通常是通过手动复制它们并在 android studio 中选择“构建”->“重建项目”来完成的。
此步骤是必要的,因为该项目还使用AndroidAnnotations,它在编译时生成类。
我还没有找到任何有关在 android studio 中选择“重建项目”时运行的内容的文档。
也:
我在 Android studio 中运行重建项目后发生了什么?
但这里的文档并没有讨论重建命令,而且为期 6 周的 udacity 课程也不是有用的资源。
当我点击“重建项目”时,Android Studio 事件日志显示:
执行任务:[clean,:app:generateDevelopmentDebugSources,:app:generateDevelopmentDebugAndroidTestSources,:app:prepareDevelopmentDebugUnitTestDependency,:app:mockableAndroidJar,:app:compileDevelopmentDebugSources,:app:compileDevelopmentDebugAndroidTestSources,:app:compileDevelopmentDebugUnitTestSources]
我在命令行中运行如下:
gradlew.bat clean :app:generateDevelopmentDebugSources :app:generateDevelopmentDebugAndroidTestSources :app:prepareDevelopmentDebugUnitTestDependency :app:mockableAndroidJar :app:compileDevelopmentDebugSources :app:compileDevelopmentDebugAndroidTestSources :app:compileDevelopmentDebugUnitTestSources
该命令执行,但构建完成时出现数百个错误,当您尝试编译或清理而不首先运行重建时,也会发生这种情况。显然这个命令是不完整的。
当我查看 Android Studio 中的 Gradle 控制台时,我看到有几十个正在运行的目标,但我对复制粘贴这些目标犹豫不决,因为我不知道对项目进行哪些微小的更改将需要运行不同的目标。
我已将问题范围缩小到目标:app:compileDevelopmentDebugUnitTestJavaWithJavac
。该目标需要 Gradle 控制台中列出的其他目标之一,但我不知道是哪一个。
这些目标一定来自某个地方,但在哪里呢?
当我从命令行运行“重建项目”时,如何执行 Android Studio 执行的所有操作?
我正在使用Ionic开发跨平台应用程序,但是最近我无法将应用程序部署到由Cordova启动的android模拟器中。
从ionic中提取并构建了“ super”示例应用程序之后,我运行了cordova run android --verbose
。这将产生以下输出:
No scripts found for hook "before_run".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins …
Run Code Online (Sandbox Code Playgroud)