Can anyone guide me how to compile OrmLiteConfigUtil file in AndroidStudio i'm new to both ormlite and Android Studio.Thanks I checked the below link.but it is still giving the ClassnotFoundException.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
The pdf doc of ormLite said:
Under AndroidStudio, go to "Run" menu, and select "Edit Configurations...", this will make appear an dialog, click on the green button with the plus sign to add a new Run configuration (should be in the left-top corner of the dialog), in the contextual menu you should select "Application".
Next, click on "Main class" input and select your OrmLiteConfigUtil class. In the working directory input you should select the folder where the "res" android file is placed (in the android studio file structure you should have somthing as ".../app/src/main"). Also, select the checkbox "Use alternative JRE" and select a JRE path of a Java Runtime (for me java 7 of oracle works).
finally, click on "Ok" button to save the changes, and it's ready.
create a "raw" directory in your "res" android folder, do this before of run the config.
To run the new config: right click on the file class (your OrmLiteConfigUtil extended class, the same file that you select in the "Main class" input) and select Run '...'. wait for compiler and that is all!, you should see an config file in your res/raw folder
this is some of code for my OrmLiteConfigUtil extended class:
A screenshot of my configuration runner: