久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

AAPT2 編譯失敗:Android 3.0 Canary 1 上的無(wú)效維度

AAPT2 compile failed: invalid dimen on Android 3.0 Canary 1(AAPT2 編譯失敗:Android 3.0 Canary 1 上的無(wú)效維度)
本文介紹了AAPT2 編譯失敗:Android 3.0 Canary 1 上的無(wú)效維度的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我正在使用適用于 Android 的 Instant Apps.我安裝了所有正確的軟件包,并且厭倦了創(chuàng)建具有 Instant App 支持的新應(yīng)用程序(在創(chuàng)建新應(yīng)用程序時(shí)選中了 Instant App 復(fù)選框).問(wèn)題是我總是遇到編譯工具的問(wèn)題.有沒(méi)有其他人有這個(gè)問(wèn)題并且能夠找到任何解決方法.

I am playing around with Instant Apps for Android.I installed all the correct packages and tired to create new Application with Instant App support (checked the box for Instant App when crating new application). The problem is that I always run into a problem with compile tools. Does anybody else have this problem and was able to find any workaround.

我的環(huán)境:

  • Android Studio 3.0 Canary 1
  • 編譯 SDK:25
  • 構(gòu)建工具:26.0.0 rc2"
  • Gradle 插件:3.0.0-alpha1
  • Gradle:嘗試了 gradle-4.0-milestone1 和 2
  • Java 1.8/1.7
  • 操作系統(tǒng):嘗試了 Windows 10 和 Linux Ubuntu 16.4 LTS

錯(cuò)誤:

Error: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.internal.aapt.AaptException: AAPT2 compile failed:
aapt2 compile -o /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/res/merged/androidTest/debug /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml
Issues:
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:520 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:521 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:568 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:594 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:595 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:597 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:598 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:599 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:600 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:601 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:602 invalid dimen
 - ERROR: /home/simonp/Work/201705_InstantApp/InstantAppTest/feature/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:603 invalid dimen
:feature:mergeDebugAndroidTestResources FAILED

有問(wèn)題的行包含 (520):

The line in question contains (520):

<item format="float" name="abc_disabled_alpha_material_dark" type="dimen">0.30</item>

希望我向您提供了足夠的信息來(lái)解決問(wèn)題.謝謝.

Hopefully I provided enough information to you to resolve the problem. Thank you.

推薦答案

解決方法是將您的開(kāi)發(fā)機(jī)器切換到使用."的語(yǔ)言環(huán)境.作為小數(shù)點(diǎn).

The workaround is to switch your development machine to a locale which uses "." as a decimal mark.

可以通過(guò)以下方式更改:

It can be changed the following way:

這篇關(guān)于AAPT2 編譯失敗:Android 3.0 Canary 1 上的無(wú)效維度的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫(kù)的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫(kù)的傳遞依賴)
主站蜘蛛池模板: 精品国产三级 | 污片在线观看 | 亚洲精品中文字幕在线观看 | 伊人网伊人网 | 一级毛片中国 | 国产91观看 | 伊人网国产 | 丝袜一区二区三区 | 天天操天天玩 | 亚洲国产成人精品女人久久久 | 亚洲视频免费播放 | 99这里只有精品 | 99久久国产免费 | 久草在线在线精品观看 | 91久久久久| 国产你懂的在线观看 | 日韩精品一区在线观看 | 午夜a级理论片915影院 | 99成人在线视频 | 久久久久国产精品 | 亚洲视频一区在线 | 久久综合影院 | 色婷婷亚洲国产女人的天堂 | 性色的免费视频 | 国产精品毛片无码 | 日韩一区二区三区在线观看 | 亚洲国产精品一区在线观看 | 色桃网 | 成人精品一区二区 | 欧美网址在线观看 | 视频在线一区二区 | 青青草免费在线视频 | 午夜三区| 亚洲 成人 在线 | 亚洲国产片 | 亚洲一区二区久久久 | 欧美在线视频一区二区 | 精品久久国产视频 | 老外几下就让我高潮了 | 久久99久久98精品免观看软件 | 国产在线h|