Closed amarz2195 closed 1 year ago
why I cannot import import com.hoho.android.usbserial.BuildConfig;?
I have work out the code until I only got this error help me on how to get the buildconfig. this is after i added the dependencies in the build.gradle (usbSerialExample) the java for buildconfig is not generated automatically after adding the dependencies. why?
if your project is using gradle 8.0 you have to add the following line to gradle.properties
file
android.defaults.buildfeatures.buildconfig=true
thank you for the information what does this mean?
I typically try build->Clean, Build->Rebuild, File->Sync-Project or File->Invalidate-Caches. Sooner or later the issue is resolved.
i have tried all the methods above, all of the method can't help in resolving the error that i get it says that because I have two buildconfig files. but the two is in buildconfig java is in different files. one in usbserialexample and also in usbforandroid. how can i do this?
I recommend you restart with a plain fork and then change step by step
thank you sir
Hello guys. I am using the github project to build a serial connection. I use the gtihub as a module imported into my project. Have been following the issue that is resolved by other users. It's working at first. But when I import it inside the project, the same problem occurs which is 'can't find symbol class BuildConfig'. do help me. This is my error This is my buildconfig that is generated How can I do this?