###発生している問題
どこも波線すらないのにビルドできません!
###以下エラーメッセージです。
Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error:1 error; aborting
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process
###該当のソースコード
Java
1package com.hmdroid.jpmobiletravel; 2 3import android.appwidget.AppWidgetManager; 4import android.appwidget.AppWidgetProvider; 5import android.content.Context; 6import android.widget.RemoteViews; 7 8import com.hmdroid.prepaidsimjapan.R; 9 10/** 11 * Implementation of App Widget functionality. 12 */ 13public class QuickView extends AppWidgetProvider { 14 15 static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, 16 int appWidgetId) { 17 18 CharSequence widgetText = context.getString(R.string.app_name); 19 // Construct the RemoteViews object 20 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.quick_view); 21 views.setTextViewText(R.id.quicksim, widgetText); 22 23 // Instruct the widget manager to update the widget 24 appWidgetManager.updateAppWidget(appWidgetId, views); 25 } 26 27 @Override 28 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 29 // There may be multiple widgets active, so update all of them 30 for (int appWidgetId : appWidgetIds) { 31 updateAppWidget(context, appWidgetManager, appWidgetId); 32 } 33 } 34 35 @Override 36 public void onEnabled(Context context) { 37 // Enter relevant functionality for when the first widget is created 38 } 39 40 @Override 41 public void onDisabled(Context context) { 42 // Enter relevant functionality for when the last widget is disabled 43 } 44} 45 46 47 48 49 50 51 52```補足情報 53windows10HOME 64bit 54androidstudio2.3.2 55freetel rei FTJ161B(fullHD 424dpi)(android6.0.1)(mediatek mt6753 64bit 2GB RAM)
あなたの回答
tips
プレビュー