When i try to run my project in Android Studio. it always give me this error. i have try to clear and rebuild, but it's still not working....
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 (The system cannot find the path specified)
Read File From Assets
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 } } } } }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.