Why Android Studio shows setupWithNavController not exists?
up vote
2
down vote
favorite
NavigationUI.setupWithNavController(bottomNavigationView, navController)
When I run the app, the code is fine, but why it keeps showing compile error like this ?
The bottom navigation I use is in com.google.android.material:material
, and the bottom navigation in the param is android.support.design.widget.BottomNavigationView
. I know they are the same thing, but why it complains ?
android androidx
add a comment |
up vote
2
down vote
favorite
NavigationUI.setupWithNavController(bottomNavigationView, navController)
When I run the app, the code is fine, but why it keeps showing compile error like this ?
The bottom navigation I use is in com.google.android.material:material
, and the bottom navigation in the param is android.support.design.widget.BottomNavigationView
. I know they are the same thing, but why it complains ?
android androidx
2
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
NavigationUI.setupWithNavController(bottomNavigationView, navController)
When I run the app, the code is fine, but why it keeps showing compile error like this ?
The bottom navigation I use is in com.google.android.material:material
, and the bottom navigation in the param is android.support.design.widget.BottomNavigationView
. I know they are the same thing, but why it complains ?
android androidx
NavigationUI.setupWithNavController(bottomNavigationView, navController)
When I run the app, the code is fine, but why it keeps showing compile error like this ?
The bottom navigation I use is in com.google.android.material:material
, and the bottom navigation in the param is android.support.design.widget.BottomNavigationView
. I know they are the same thing, but why it complains ?
android androidx
android androidx
asked Oct 11 at 20:21
JIE WANG
474610
474610
2
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44
add a comment |
2
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44
2
2
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Just restart Android Studio. The lint gets confused sometimes.
add a comment |
up vote
1
down vote
Had the same issue. It's super confusing with all the different android packages now. androidx, android-arch, android-support. All of them in some weird version state with -rcX, alpha-X or beta-X...
Using the following code I got the same error. But after telling AndroidStudio to File -> Invalidate Caches and Restart, it suddenly worked.
Also I can highly recommend this tutorial: https://proandroiddev.com/android-jetpack-navigationui-a7c9f17c510e
imports:
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha07"
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-alpha07"
MainActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.google.android.material.bottomnavigation.BottomNavigationView
import net.onefivefour.android.ebtimetracker.R
class MainActivity : AppCompatActivity()
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
NavigationUI.setupWithNavController(findViewById(R.id.navigation), findNavController(R.id.navHostFragment))
override fun onSupportNavigateUp() = findNavController(R.id.navHostFragment).navigateUp()
Activity Layout
<fragment
android:id="@+id/navHostFragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
navigation.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
nav_graph.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
</navigation>
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Just restart Android Studio. The lint gets confused sometimes.
add a comment |
up vote
1
down vote
accepted
Just restart Android Studio. The lint gets confused sometimes.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Just restart Android Studio. The lint gets confused sometimes.
Just restart Android Studio. The lint gets confused sometimes.
answered Nov 10 at 16:49
TheWanderer
6,08621026
6,08621026
add a comment |
add a comment |
up vote
1
down vote
Had the same issue. It's super confusing with all the different android packages now. androidx, android-arch, android-support. All of them in some weird version state with -rcX, alpha-X or beta-X...
Using the following code I got the same error. But after telling AndroidStudio to File -> Invalidate Caches and Restart, it suddenly worked.
Also I can highly recommend this tutorial: https://proandroiddev.com/android-jetpack-navigationui-a7c9f17c510e
imports:
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha07"
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-alpha07"
MainActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.google.android.material.bottomnavigation.BottomNavigationView
import net.onefivefour.android.ebtimetracker.R
class MainActivity : AppCompatActivity()
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
NavigationUI.setupWithNavController(findViewById(R.id.navigation), findNavController(R.id.navHostFragment))
override fun onSupportNavigateUp() = findNavController(R.id.navHostFragment).navigateUp()
Activity Layout
<fragment
android:id="@+id/navHostFragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
navigation.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
nav_graph.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
</navigation>
add a comment |
up vote
1
down vote
Had the same issue. It's super confusing with all the different android packages now. androidx, android-arch, android-support. All of them in some weird version state with -rcX, alpha-X or beta-X...
Using the following code I got the same error. But after telling AndroidStudio to File -> Invalidate Caches and Restart, it suddenly worked.
Also I can highly recommend this tutorial: https://proandroiddev.com/android-jetpack-navigationui-a7c9f17c510e
imports:
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha07"
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-alpha07"
MainActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.google.android.material.bottomnavigation.BottomNavigationView
import net.onefivefour.android.ebtimetracker.R
class MainActivity : AppCompatActivity()
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
NavigationUI.setupWithNavController(findViewById(R.id.navigation), findNavController(R.id.navHostFragment))
override fun onSupportNavigateUp() = findNavController(R.id.navHostFragment).navigateUp()
Activity Layout
<fragment
android:id="@+id/navHostFragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
navigation.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
nav_graph.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
</navigation>
add a comment |
up vote
1
down vote
up vote
1
down vote
Had the same issue. It's super confusing with all the different android packages now. androidx, android-arch, android-support. All of them in some weird version state with -rcX, alpha-X or beta-X...
Using the following code I got the same error. But after telling AndroidStudio to File -> Invalidate Caches and Restart, it suddenly worked.
Also I can highly recommend this tutorial: https://proandroiddev.com/android-jetpack-navigationui-a7c9f17c510e
imports:
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha07"
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-alpha07"
MainActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.google.android.material.bottomnavigation.BottomNavigationView
import net.onefivefour.android.ebtimetracker.R
class MainActivity : AppCompatActivity()
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
NavigationUI.setupWithNavController(findViewById(R.id.navigation), findNavController(R.id.navHostFragment))
override fun onSupportNavigateUp() = findNavController(R.id.navHostFragment).navigateUp()
Activity Layout
<fragment
android:id="@+id/navHostFragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
navigation.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
nav_graph.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
</navigation>
Had the same issue. It's super confusing with all the different android packages now. androidx, android-arch, android-support. All of them in some weird version state with -rcX, alpha-X or beta-X...
Using the following code I got the same error. But after telling AndroidStudio to File -> Invalidate Caches and Restart, it suddenly worked.
Also I can highly recommend this tutorial: https://proandroiddev.com/android-jetpack-navigationui-a7c9f17c510e
imports:
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0-alpha07"
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0-alpha07"
MainActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.NavigationUI
import com.google.android.material.bottomnavigation.BottomNavigationView
import net.onefivefour.android.ebtimetracker.R
class MainActivity : AppCompatActivity()
override fun onCreate(savedInstanceState: Bundle?)
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
NavigationUI.setupWithNavController(findViewById(R.id.navigation), findNavController(R.id.navHostFragment))
override fun onSupportNavigateUp() = findNavController(R.id.navHostFragment).navigateUp()
Activity Layout
<fragment
android:id="@+id/navHostFragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@+id/navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/nav_graph" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
navigation.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
nav_graph.xml
<activity
android:id="@+id/mainActivity"
android:name="net.onefivefour.android.ebtimetracker.ui.MainActivity"
android:label="MainActivity"
tools:layout="@layout/activity_main" />
<fragment
android:id="@+id/quickEntryFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.quickentry.QuickEntryFragment"
android:label="QuickEntryFragment"
tools:layout="@layout/fragment_quick_entry" />
<fragment
android:id="@+id/templatesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.templates.TemplatesFragment"
android:label="TemplatesFragment"
tools:layout="@layout/fragment_templates" />
<fragment
android:id="@+id/entriesFragment"
android:name="net.onefivefour.android.ebtimetracker.ui.entries.EntriesFragment"
android:label="EntriesFragment"
tools:layout="@layout/fragment_entries" />
</navigation>
answered Nov 10 at 13:45
muetzenflo
1,52511643
1,52511643
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52768334%2fwhy-android-studio-shows-setupwithnavcontroller-not-exists%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Just restart Android Studio. The lint gets confused sometimes.
– TheWanderer
Oct 11 at 20:27
restart works for me. @TheWanderer can you put this as an answer ? I will accept this.
– JIE WANG
Nov 10 at 16:44