在重建项目期间面临错误

时间:2018-01-08 12:19:26

标签: android

  

错误:任务执行失败   ':应用程序:transformClassesWithDexForDebug'。 >   com.android.build.api.transform.TransformException:   com.android.ide.common.process.ProcessException:   java.util.concurrent.ExecutionException:   com.android.dex.DexIndexOverflowException:方法ID不在[0,   0xffff]:65536

1 个答案:

答案 0 :(得分:1)

<style type="text/css"> .image_label { position: relative; } .image_label img { display: block; } .image_label span { position: absolute; font-size: 0.5vw; font-weight: bold; z-index:1; border: 1px solid #ababab; background: #ffff80; } @media only screen and (min-width: 300px) and (max-width: 500px){ #switch_icon{ height:40px; width:40px;} } @media only screen and (min-width: 150px) and (max-width: 300px) { #switch_icon{ height:12px; width:12px;} } @media only screen and (min-width: 50px) and (max-width: 150px) { #switch_icon{ height:4px; width:4px; } </style> <div class="image_label"> <span style="bottom: 71.5%; left: 49.5%;">12 °C</span> <span style="bottom: 62%; left: 49.5%;">15 °C</span> <img src="http://test.com/portal/attachment/download?uid=9b8ab620-29a5-4274-ac19-c0b097cef42a" alt="file_schema" width="100%" /> <span style="bottom: 74%; left: 41%;" ><img id="switch_icon" src="/portal/IconServlet/1970" /></span> </div> 文件的defaultConfig中使用multiDexEnabled true;作为

Gradle

并在依赖项中添加编译defaultConfig { applicationId "Your app Id" minSdkVersion 19 targetSdkVersion 24 multiDexEnabled true; }