600017是不是因为运行到手机,包名和keystore不对,应该是什么呢?是不是没有办法在HBuilder调试?
在本地打包时,
AndroidManifest.xml添加了
 <activity  
            android:name="com.mobile.auth.gatewayauth.LoginAuthActivity"  
            android:configChanges="orientation|keyboardHidden|screenSize"  
            android:exported="false"  
            android:theme="@style/authsdk_activity_dialog"  
        android:launchMode="singleTop" />  
        <!--协议⻚⾯webview-->  
        <activity  
            android:name="com.mobile.auth.gatewayauth.activity.AuthWebVeiwActivity"  
            android:configChanges="orientation|keyboardHidden|screenSize"  
            android:exported="false"  
            android:launchMode="singleTop"  
            android:screenOrientation="behind" />  
        <!--移动授权⻚-->  
        <activity  
            android:name="com.cmic.sso.sdk.activity.LoginAuthActivity"  
            android:configChanges="orientation|keyboardHidden|screenSize"  
            android:exported="false"  
            android:launchMode="singleTop" />aar文件也正确添加到libs中,
package.json用了zip包中的,放在assets目录下
android:usesCleartextTraffic="true"也配置了  
但仍然是undefined,还有没有考虑到的吗?
 
             
             
             
			 
                                        
                                     
            
2 个回复
开轩 (作者)
原因是把package.json直接放在assets下了,应该放一个叫dcloud_uniplugins.json的文件,内容为:
谢谢大家!
开轩 (作者)
无法运行到手机的问题也解决了,只做自定义基座时,需要设置正确的包名