Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
预期引用,但得到(原始字符串)@+;android:style/Animation.半透明_Android_Linux_Build.gradle_Android Studio 3.0 - Fatal编程技术网

预期引用,但得到(原始字符串)@+;android:style/Animation.半透明

预期引用,但得到(原始字符串)@+;android:style/Animation.半透明,android,linux,build.gradle,android-studio-3.0,Android,Linux,Build.gradle,Android Studio 3.0,当我将as版本从2.3更新到3.0并编译同一个项目时,出现了一些错误。如何解决这个问题?thks AGPBI:{ "kind":"error", "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.", "sources":[ { "file":"/home/.../android/.../app/build/intermediates/increm

当我将as版本从2.3更新到3.0并编译同一个项目时,出现了一些错误。如何解决这个问题?thks

AGPBI:{
"kind":"error",
"text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.",
"sources":[
  {
     "file":"/home/.../android/.../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml",
     "position":{
        "startLine":533
     }
  }
  ],
  "original":"",
  "tool":"AAPT"
  }AGPBI:{
  "kind":"error",
  "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.",
  "sources":[
  {
     "file":"/home/.../android/.../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-zh-rCN/values-zh-rCN.xml",
     "position":{
        "startLine":165
     }
  }
  ],
  "original":"",
  "tool":"AAPT"
  }
新日志如下所示 信息:渐变任务[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:mockableAndroidJar]警告:android.dexOptions.incremental属性已弃用,对构建过程没有影响/home/../app/src/main/res/values/dcloud_styles.xml错误:(3,5)错误:预期引用但获得(原始字符串)@+android:style/Animation.半透明/home/../app/build/mediates/incremental/mergeDebugResources/merged.dir/values/values.xml错误:(534)预期引用,但获得(原始字符串)@+android:style/Animation.半透明/home/../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-zh-rCN/values-zh-rCN.xml错误:(166)错误:预期引用但获得(原始字符串)@+android:style/Animation.半透明。错误:(166)预期引用,但获得(原始字符串)@+android:style/Animation.transparent。错误:链接引用失败。错误:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:aapt2错误:检查日志了解详细信息错误:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:aapt2错误:检查日志以了解详细信息错误:任务“:app:processDebugResources”的执行失败

Failed to execute aapt Information:BUILD FAILED in 2s Information:9 errors Information:1 warning Information:See complete output in console
这是xml文件。 @动画/数据云\u从顶部滑入\u @动画/数据云\u滑出\u到\u顶部


@颜色/图像\u拾取\u标题\u btn\u正常
假的
顶部
真的
匹配父项
真的
真的
@可抽出式/as_bg_ios6
@可提取/自动取消
@可抽出式/其他式
@可抽出式/其他式
@可抽出式/其他式
@可抽出式/其他式
@android:彩色/白色
@android:彩色/黑色
20dp
5dp
20dp
16便士
@android:彩色/透明
@可提取/slt作为损失7取消
@可拉拔/slt作为其他顶部
@可提取/slt作为第7页其他标题
@可拉拔/slt作为第7部分其他部分中间部分
@可抽出式/单件式(如图7所示)其他(如图7所示)底部
@可抽出式/单件式
#1E82FF
#1E82FF
#E8484A
#8C8C8C
10dp
0dp
10dp
16便士
@颜色/图像\u拾取\u标题\u btn\u正常
假的
真的
匹配父项
#F4
#00000000
#中交

“@+android:style/Animation.Translucent”是对样式的错误引用,它应该是“@android:style/Animation.Translucent”。

values.xml的第533行和values.zh.rCN.xml的第165行是什么?我很确定有
@+android
应该有
@android
你有什么办法解决这个问题吗?如果你有东西要添加,你应该编辑你的问题,而不是将添加的内容作为答案发布。我看到你发布的values.xml没有533行长,文件
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
是否仍然存在?你能在那里找到令人不快的一行吗?请把你找到的答案写在一个答案里,这样更容易参考。
<style name="dcloud_defalut_dialog">
    <item name="android:windowBackground">@color/image_pick_title_btn_normal</item> 
    <item name="android:backgroundDimEnabled">false</item>
    <item name="android:layout_gravity">top</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:layout_width">match_parent</item>
</style>

<style name="CustomTheme">
    <item name="android:windowNoTitle">true</item>
    <!-- <item name="android:windowIsTranslucent">true</item> -->
</style>
 <style name="SplashTheme" parent="@android:style/Theme.Translucent">
    <item name="android:windowNoTitle">true</item>
</style>


 <style name="ActionSheetStyleIOS6">
    <item name="actionSheetBackground">@drawable/as_bg_ios6</item>
    <item name="cancelButtonBackground">@drawable/as_cancel_bt_bg</item>
    <item name="otherButtonTopBackground">@drawable/as_other_bt_bg</item>
    <item name="otherButtonMiddleBackground">@drawable/as_other_bt_bg</item>
    <item name="otherButtonBottomBackground">@drawable/as_other_bt_bg</item>
    <item name="otherButtonSingleBackground">@drawable/as_other_bt_bg</item>
    <item name="cancelButtonTextColor">@android:color/white</item>
    <item name="otherButtonTextColor">@android:color/black</item>
    <item name="actionSheetPadding">20dp</item>
    <item name="otherButtonSpacing">5dp</item>
    <item name="cancelButtonMarginTop">20dp</item>
    <item name="actionSheetTextSize">16sp</item>
</style>

<style name="ActionSheetStyleIOS7">
    <item name="actionSheetBackground">@android:color/transparent</item>
    <item name="cancelButtonBackground">@drawable/slt_as_ios7_cancel_bt</item>
    <item name="otherButtonTopBackground">@drawable/slt_as_ios7_other_bt_top</item>
    <item name="otherButtonTitleBackground">@drawable/slt_as_ios7_other_bt_title</item>
    <item name="otherButtonMiddleBackground">@drawable/slt_as_ios7_other_bt_middle</item>
    <item name="otherButtonBottomBackground">@drawable/slt_as_ios7_other_bt_bottom</item>
    <item name="otherButtonSingleBackground">@drawable/slt_as_ios7_other_bt_single</item>
    <item name="cancelButtonTextColor">#1E82FF</item>
    <item name="otherButtonTextColor">#1E82FF</item>
    <item name="destructiveButtonTextColor">#E8484A</item>
    <item name="titleButtonTextColor">#8C8C8C</item>
    <item name="actionSheetPadding">10dp</item>
    <item name="otherButtonSpacing">0dp</item>
    <item name="cancelButtonMarginTop">10dp</item>
    <item name="actionSheetTextSize">16sp</item>
</style>
    <style name="featureLossDialog" parent="@android:style/Theme.Holo.Dialog" >
    <item name="android:windowBackground">@color/image_pick_title_btn_normal</item> 
    <item name="android:backgroundDimEnabled">false</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:layout_width">match_parent</item>
</style>

 <color name="image_pick_title_btn_pressed">#f4f4f4</color>
 <color name="image_pick_title_btn_normal">#00000000</color>
 <color name="ime_background">#cccccc</color>

 <declare-styleable name="ActionSheets">
    <attr name="actionSheetStyle" format="reference" />
</declare-styleable>
<declare-styleable name="ActionSheet">
    <attr name="actionSheetBackground" format="color|reference" />
    <attr name="cancelButtonBackground" format="color|reference" />
    <attr name="otherButtonTopBackground" format="color|reference" />
    <attr name="otherButtonTitleBackground" format="color|reference" />
    <attr name="otherButtonMiddleBackground" format="color|reference" />
    <attr name="otherButtonBottomBackground" format="color|reference" />
    <attr name="otherButtonSingleBackground" format="color|reference" />
    <attr name="cancelButtonTextColor" format="color|reference" />
    <attr name="otherButtonTextColor" format="color|reference" />
    <attr name="destructiveButtonTextColor" format="color|reference" />
    <attr name="titleButtonTextColor" format="color|reference" />
    <attr name="actionSheetPadding" format="dimension|reference" />
    <attr name="otherButtonSpacing" format="dimension|reference" />
    <attr name="cancelButtonMarginTop" format="dimension|reference" />
    <attr name="actionSheetTextSize" format="dimension|reference" />
</declare-styleable>