Android Studio occurs couldn ' t load jpush175 from loader Dalvik.system.PathClassLoader exception
Source: Internet
Author: User
<span id="Label3"></p><p><p>The rise of Android Studio (hereinafter referred to As) has been overwhelming and will likely replace eclipse for Android development in the future</p></p><p><p>We must have been accustomed to eclipse.</p></p><p><p>Recently encountered couldn ' t load jpush175 from loader dalvik.system.PathClassLoader such a problem</p></p><p><p>It says as cannot find the library file</p></p><p><p>Occurs when a Third-party package such as Eclipse embedded in the Aurora push is in progress</p></p><p><p>As is not a direct identification of these files</p></p><p><p>If The. jar file is required to be copied to the Libs folder, a colleague message has an Add Library option added (it may also be the IS library option or Other)</p></p><p><p>If the. so file needs to be modified Build.gradle</p></p><p><p></p></p><pre style="font-family:Consolas; font-size:15pt; background-color:rgb(255,255,255)">Android {compilesdkversion<span style="color:#0000ff"><span style="color:#0000ff"></span> a</span><span style="color:#0000ff"><span style="color:#0000ff"> </span></span>Buildtoolsversion<span style="color:#008000"><span style="color:#008000"><strong>"22.0.1"</strong></span></span><span style="color:#008000"><span style="color:#008000"><strong></strong></span></span><span style="color:#008000"><span style="color:#008000"><strong> </strong></span></span>Defaultconfig {applicationid<span style="color:#008000"><span style="color:#008000"><strong>"cn.ninebot.ninebot"</strong></span></span><span style="color:#008000"><span style="color:#008000"><strong> </strong></span></span>Minsdkversion<span style="color:#0000ff"><span style="color:#0000ff"></span> -</span><span style="color:#0000ff"><span style="color:#0000ff"> </span></span>Targetsdkversion<span style="color:#0000ff"><span style="color:#0000ff"></span> a</span><span style="color:#0000ff"><span style="color:#0000ff"> </span></span>Versioncode<span style="color:#0000ff"><span style="color:#0000ff">2</span></span><span style="color:#0000ff"><span style="color:#0000ff"> </span></span>Versionname<span style="color:#008000"><span style="color:#008000"><strong>"3.0.0.5"</strong></span></span><span style="color:#008000"><span style="color:#008000"><strong> </strong></span></span>} buildtypes {release {minifyenabled<span style="color:#000043"><span style="color:#000043"><strong>true</strong></span></span><span style="color:#000043"><span style="color:#000043"><strong> </strong></span></span>Proguardfiles Getdefaultproguardfile (<span style="color:#008000"><span style="color:#008000"><strong>' Proguard-android.txt '</strong></span></span>),<span style="color:#008000"><span style="color:#008000"><strong>' Proguard-rules.pro '</strong></span></span><span style="color:#008000"><span style="color:#008000"><strong> </strong></span></span>}} Sourcesets.<span style="color:#008000"><span style="color:#008000">Main</span></span>{<span style="color:#808080"><span style="color:#808080"><em>//</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Let</em></span></span><span style="color:#808080"><span style="color:#808080"><em></em></span> as</span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Identify</em></span></span><span style="color:#808080"><span style="color:#808080"><em>Libs</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>under the</em></span></span><span style="color:#808080"><span style="color:#808080"><em>.</em></span> so</span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Third-party Packages</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em> </em></span></span>Jnilibs.srcdirs =[<span style="color:#008000"><span style="color:#008000"><strong>' Libs '</strong></span></span>]}}dependencies {<span style="color:#808080"><span style="color:#808080"><em>//compile filetree (dir: ' libs ', include: [' *.jar '])</em></span></span><span style="color:#808080"><span style="color:#808080"><em> //</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Let</em></span></span><span style="color:#808080"><span style="color:#808080"><em></em></span> as</span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Identify</em></span></span><span style="color:#808080"><span style="color:#808080"><em>Libs</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>under the</em></span></span><span style="color:#808080"><span style="color:#808080"><em>.</em></span> so</span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em>Third-party Packages</em></span></span><span style="color:#808080; font-family:‘宋体‘"><span style="color:#808080; font-family:‘宋体‘"><em> </em></span></span>Compile Filetree (<span style="color:#008000"><span style="color:#008000">dir</span></span>:<span style="color:#008000"><span style="color:#008000"><strong>' Libs '</strong></span></span>,<span style="color:#008000"><span style="color:#008000">include</span></span>: [<span style="color:#008000"><span style="color:#008000"><strong>' **.* '</strong></span></span>]) }</pre>The exception is resolved by re-running the program after doing the two<p><p></p></p> <p style="font-size:12px;"><p style="font-size:12px;">Copyright Notice: This article for Bo Master original article, without Bo Master permission not Reproduced.</p></p> <p><p>Android Studio occurs couldn ' t load jpush175 from loader Dalvik.system.PathClassLoader exception</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service