我将android studio升级到2.2.3后面临问题
问题是使用androID.support.design.Widget.CoordinatorLayout
它显示了这个错误
The following classes @R_404_5717@ not be found:
– androID.support.design.Widget.CoordinatorLayout (Fix Build Path, Edit XML, Create Class)
– androID.support.design.Widget.Text@R_403_5983@Layout (Fix Build Path, Edit XML, Create Class) Tip: Try to build the project. Tip: Try to
refresh the layout.
\app\src\main\res\layout\activity_main.xml” in attribute “imeActionID” is not a valID integer
我试图修复构建路径,但不适合我.
当我构建并运行它显示
Caused by: java.lang.classNotFoundException: DIDn’t find class
“androID.support.design.Widget.CoordinatorLayout” on path:
DexPathList[[zip file
“/data/app/fitness.aclass.fitness-1/base.apk”],nativelibraryDirectorIEs=[/vendor/lib,
/system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.classLoader.loadClass(ClassLoader.java:511)
at java.lang.classLoader.loadClass(ClassLoader.java:469)
at androID.vIEw.LayoutInflater.createVIEw(LayoutInflater.java:571)
at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:743)
at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:482)
at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:414)
at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:365)
at androID.support.v7.app.AppCompatDelegateImplV9.setContentVIEw(AppCompatDelegateImplV9.java:284)
at androID.support.v7.app.AppCompatActivity.setContentVIEw(AppCompatActivity.java:140)
at fitness.aclass.fitness.MainActivity.onCreate(MainActivity.java:11)
at androID.app.Activity.performCreate(Activity.java:6092)
at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)
at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2468)
at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595)
at androID.app.ActivityThread.access$800(ActivityThread.java:178)
at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)
at androID.os.Handler.dispatchMessage(Handler.java:111)
at androID.os.Looper.loop(Looper.java:194)
at androID.app.ActivityThread.main(ActivityThread.java:5624)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Suppressed: java.lang.classNotFoundException: androID.support.design.Widget.CoordinatorLayout
at java.lang.class.classForname(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.classLoader.loadClass(ClassLoader.java:504)
… 22 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
这是我的build.gradle(App Module)
apply plugin: 'com.androID.application'androID { compileSdkVersion 24 buildToolsversion "24.0.2" defaultConfig { applicationID "fitness.aclass.fitness" minSdkVersion 16 targetSdkVersion 24 versionCode 1 versionname "1.0" testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } }}dependencIEs { compile filetree(include: ['*.jar'], dir: 'libs') androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.androID.support', module: 'support-annotations' }) compile 'com.androID.support:appcompat-v7:24.2.0' testCompile 'junit:junit:4.12'}
任何解决方案.!
解决方法:
CoordinatorLayout是设计库的一部分.所以你应该补充一下
编译’com.androID.support:design:25.2.0′
或24.2.0版本,如果您出于某种原因需要使用过时的版本.
总结以上是内存溢出为你收集整理的java – 渲染android.support.design.widget.CoordinatorLayout的问题全部内容,希望文章能够帮你解决java – 渲染android.support.design.widget.CoordinatorLayout的问题所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)