2017-10-30 14 views
0

Android Studioでプロジェクトを実行しようとすると、それはいつも私にこのエラーを与える。私はAndroid Studioプロジェクト実行エラー

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. 

....クリアし、再構築しようとしていますが、それはまだ働いていないcom.android.build.api.transform.TransformException:java.lang.RuntimeException:java.lang.RuntimeException: com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.io.FileNotFoundException:Z:¥Android¥CalculatorAutumn7¥app¥build¥intermediates¥transforms¥dex¥debug¥folders¥1000¥5 \ slice_1の\のclasses.dexあなたが正しいファイルパスを提供しなければならない

+1

はあなたの** 'build.Gradle' **を表示 –

答えて

0

(システムは指定されたパスを見つけることができません)

資産からの読み出しファイル

  • (.txtのような)使用のTyr catchブロック
  • ギブfile_nameに+拡張
 

     BufferedReader mRreader = null; 
     try { 
      mRreader = new BufferedReader(
      new InputStreamReader(getAssets().open("your_file_name.txt"); 
      // do reading,usually loop until end of file reading 

      String mLine; 

      while ((mLine = mRreader.readLine()) != null) { //process line 
      /// write code 
      } 
     } catch (IOException e) { 
      //log the exception 
     } finally { 
      if (mRreader != null) { 
       try { 
        mRreader.close(); 
       } catch (IOException e) { //log the exception } } } 


       } 

      } 
関連する問題