Comments (4)
I believe I can definitely use it. I included it in my project first to test but I thought something was wrong because android studio kept showing unresolved reference
. I figured it was broken. I then cloned this project and tried the demo app here. Same issue so I tried running the demo app anyway and it works fine, but android studio continues to show unresolved reference
. I'm assuming if I ran it in my app instead of worrying that android studio couldn't find it, it would work too. I don't think being able to run is the point of this issue though, it's more the issue that android studio can't ever find the generated classes
I did some more exploring and here's what I found. Generated class seems to always be unresolved reference
and you have to manually import it. Auto-complete import doesn't work. After manual import, the import itself shows unresolved reference
as well. Seeing these errors, red markings and having no auto-complete is kind of annoying during development, especially on a library you're not yet familiar with.
The demo app has this same issue in android studio. As master is right now, look at MainActivity in android studio and you'll see android studio mark your code in red. You can then try creating a new package for UserSettings
, like package com.criations.bulldog.whatever.UserModel
. You then have to manually add the import in MainActivity and you'll still get unresolved reference
for the import and where UserSettings
is used.
If it matters, my android studio version is 3.3 Canary 3, built July 10, 2018.
from bulldog.
Thanks for the detailed explanation, so the problem is generated code not recognized by Android Studio. I had that problem once but a clean and build soved it.
I will take a closer look at it when I find some free time.
Thanks
from bulldog.
But can you use it ? Can you see to the generated classes ? Is just a matter of wrong imports in Android studio ?
from bulldog.
Hi sorry for the long delay.
Please use this in gradle file so Android studio can see the generated classes.
main { res.srcDirs = ["${buildDir.absolutePath}/generated/source/kaptKotlin/"] }
from bulldog.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulldog.